Re: [xml] #text element between nodes

On Thu, Oct 6, 2011 at 14:12, Rob Eisink <reisreg hotmail com> wrote:

 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

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 nosenko gmail com>

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]