Search found 2 matches

by Bander
Sat Dec 24, 2005 8:46 pm
Forum: Game Programming
Topic: Bug(?) in irrXML 1.2
Replies: 2
Views: 2118

The quick fix is even simpler than I thought. In CXMLReaderImpl.h at line 67, change the read() method to:

//! Reads forward to the next xml node.
//! \return Returns false, if there was no further node.
virtual bool read()
{
// if previous node was an empty element, emit an end node
if ...
by Bander
Sat Dec 24, 2005 5:39 pm
Forum: Game Programming
Topic: Bug(?) in irrXML 1.2
Replies: 2
Views: 2118

Bug(?) in irrXML 1.2

Given a simple XML file containing:
<parent>
<child></child>
</parent>
You'll see IXMLReader return the following nodes:
EXN_ELEMENT "parent"
EXN_TEXT
EXN_ELEMENT "child"
EXN_ELEMENT_END "child"
EXN_TEXT
EXN_ELEMENT_END "parent"

The EXN_TEXT nodes being the whitespace in between the elements ...