Hello
Im writing a c++ wrapper where i read a XML file with the
xmlReadFile(filename, NULL, 0);
I have created the file via libxml2 calls and got it saved to disk.
The file im trying to read in my example is:
?xml version=1.0
On 6/23/2010 16:41, James Ytterstene wrote:
Hello
Im writing a c++ wrapper where i read a XML file with the
xmlReadFile(filename, NULL, 0);
I have created the file via libxml2 calls and got it saved to disk.
The file im trying to read in my example is:
James Ytterstene schrieb am 23.06.2010 um 14:41 (+0200):
If i have the file unchanged from any windows editor the line ending
is CR only but if someone edit the file it will be changed to CRLF
(Stupid windows editors but we must use them) If i now try to read the
file back in libxml2 i will
Hello,
I am using libxml2 HTML 4.0 parser to parse HTML and XHTML web pages.
I want to found specific tags (i.e a), so I have to walk through the
tree of parsed document. And I don't want to use recursion like in
this example http://xmlsoft.org/examples/tree1.c. Is there some
mechanism in libxml
Hello
Thanks for all the replies. I fell quite safe now that i know how it works.
All our important data is held within xxx.../xxx so the extra linebreaks
and spaces for better visualisation will not impact.
Only one follow question. The XML_PARSE_NOBLANKS fixed everyting
and i could mix CR and
James Ytterstene schrieb am 23.06.2010 um 22:02 (+0200):
The XML_PARSE_NOBLANKS fixed everyting and i could mix CR and CRLF in
the file. But when i read about the option it say it fixes whitespace
and not CRLF.
Don't know what you mean by fixing it, but along with space and tab,
CR and LF
Oliver Kindernay schrieb am 23.06.2010 um 18:39 (+0200):
I am using libxml2 HTML 4.0 parser to parse HTML and XHTML web pages.
I want to found specific tags (i.e a), so I have to walk through the
tree of parsed document. And I don't want to use recursion like in
this example