On Thu, Oct 6, 2011 at 14:12, Rob Eisink <reis...@hotmail.com> wrote:
> IHi,
>
>  use the xmlNewTextReaderFilename to process a xml file.
>
> I walk through the nodes with  xmlTextReaderRead, during this I get
> elememts with the name #text, the attribute is
> XML_READER_TYPE_SIGNIFICANT_WHITESPACE.
>
> What is the need of these kind of elements and why do I get them? Each time
> i've to skip them.

You may try to use xmlReaderForFile() with XML_PARSE_NOBLANKS in
'options' parameter for relax whitespace handling and allow libxml2 to
skip many of them for you.


-- 
Andrew W. Nosenko <andrew.w.nose...@gmail.com>
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xml@gnome.org
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to