#113 TiXmlDocument::RootElement and FirstChildElemend return NULL

closed-invalid
None
5
2011-05-14
2010-10-13
No

I found out that in an xml file where the first item is a comment (in <!-- --> ), LoadFile returns true,
But if i try to call RootElement of FirstChildElement with an element name that is at the first node level, both those methods return NULL.
Is it the expected behaviour?

Discussion

  • olivier barthelemy

    The xml file that i'm failing to load

     
  • Lee Thomason

    Lee Thomason - 2011-05-14

    Yes, that is correct. The file contains no Element, only a TiXmlComment.

     
  • Lee Thomason

    Lee Thomason - 2011-05-14
    • assigned_to: nobody --> leethomason
    • status: open --> closed-invalid
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks