ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > irrXML
forum topic indicator Small bugfix for rootnode getting ended twice
person icon
Legion
Guest
Quote
2007-04-21 21:01:46

This is a small bugfix for the rootnode-ending getting returned twice.
Where read() returns true even when there's no more data left.

CXMLReaderImpl.h -

in parseCurrentNode()

          case L'/':
               parseClosingXMLElement();
               break;

fix:
          case L'/':
               parseClosingXMLElement();
               // more forward until '<' found
               while(*P != L'<' && *P)
                    ++P;
               break;

This way data will always be drained. So that read() properly terminates after last node ending.

/Legion

person icon
niko
Moderator
Quote
2007-04-23 17:21:31

Thanks for posting :)


Create reply:










 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






Copyright© Ambiera e.U. all rights reserved.
Contact | Imprint | Products | Privacy Policy | Terms and Conditions |