From: tamouse mailing lists Date: 2013-04-15T02:22:10+09:00 Subject: Re: Why does #content method in nokogiri not printing the full text? On Sun, Apr 14, 2013 at 12:07 PM, Love U Ruby wrote: > tamouse mailing lists wrote in post #1105602: >> On Sun, Apr 14, 2013 at 11:59 AM, tamouse mailing lists >> wrote: > >> Follow-up: since you have a complete html document, why treat it as a >> fragment? You can call Nokogiri::HTML.parse(html) instead and get the >> actual complete document tree with all the proper nesting. > > I am just learning this `Nokogiri` first time. So don't have that much > knowledge about their uses. > > Could you tell me please? No. I will tell you this though. You have *entirely* the wrong strategy for learning how to be a developer. You have adopted the strategy of "someone must tell me". You need to adopt the strategy of "try things out *until* I learn what works". If you get stuck on this low a level of understanding, you will never progress, and as you have seen, it just frustrates people whom you continuously run back to with every single step. You may think you are learning, but you are not at all learning how to learn, which is the more important step. You are not learning how to solve problems, especially your own. People are NOT on this list to teach you. We are not your instructors. We answer questions out of the goodness of our hearts, but repeated trips to the well for every sip wears everyone here down. Frankly, it makes me want to part this list and go elsewhere. It makes it very unenjoyable, and very unpleasant. > > When should I use `Nokogiri::HTML.parse(html)`, and the when the other? Please compare and contrast the terms "Document" and "Document Fragment" > > -- > Posted via http://www.ruby-forum.com/. > What do the words "Document" and "Document Fragment" mean to you?