title: XML::LibXML Line Ending (whitespace) Problem
body: <p>HI,
  I am parsing an XML file using LibXML in Perl.
  The problem that I have is the ending characters (whitespace) is treated as a text node. For instance, given an input like the following</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE books [
      &lt;!ELEMENT title  (#PCDATA)&gt;
      &lt;!ELEMENT author (#PCDATA)&gt;
      &lt;!ELEMENT year   (#PCDATA)&gt;
      &lt;!ELEMENT price  (#PCDATA)&gt;
      &lt;!ELEMENT book   (title, author, year, price)&gt;
      &lt;!ELEMENT books  (book*)&gt;
  ]&gt;
  &lt;books&gt;
  &lt;book&gt;
  &lt;title&gt;Everyday Italian&lt;/title&gt;
  &lt;author&gt;Giada De Laurentiis&lt;/author&gt;
  &lt;year&gt;2005&lt;/year&gt;
  &lt;price&gt;30.00&lt;/price&gt;
  &lt;/book&gt;
  &lt;/books&gt;
  </code></pre>
  
  <p>The parser thinks that the number of child of node "books" is 3, they are:</p>
  
  <ul>
  <li>text node (containing the char between <code>&lt;books&gt;</code> and <code>&lt;book&gt;</code>)</li>
  <li>element node of <code>&lt;book&gt;</code></li>
  <li>text node (containing the char between <code>&lt;/book&gt;</code> and <code>&lt;/books&gt;</code>)</li>
  </ul>
  
  <p>Question is how do I tell LibXML to ignore whitespaces? 
  I tried with no_blanks (that is $parser = XML::LibXML->new(no_blanks => 1) when construction the parser) but it seems that it has no effect.</p>
  
  <p>Thanks in advance</p>