tinyxml2 icon indicating copy to clipboard operation
tinyxml2 copied to clipboard

Fail to parse the XML document containing comments

Open agwatic opened this issue 6 years ago • 7 comments

I have a document with comments inside it. It fails to parse the document and it stops once it hits a XML comment. How to fix this? @leethomason

agwatic avatar Sep 26 '19 12:09 agwatic

More investigation:

I'm using XMLHandle to parse the tag and its children. inside the tag there's a comment in the middle of it. When calling NextSibling() it breaks the loop. Can you help me know the root cause?

agwatic avatar Sep 30 '19 10:09 agwatic

Do you have a very small sample of the XML you are trying to parse?

FFMG avatar Oct 01 '19 13:10 FFMG

Hi, I am having the same issue, her is a small sample of an XML that fails when parsing:

jfcgomes avatar Oct 08 '19 15:10 jfcgomes

It erased my xml lines !?? Adding a file sample.zip

jfcgomes avatar Oct 08 '19 15:10 jfcgomes

Odd...file looks okay. Marking bug.

leethomason avatar Mar 02 '20 01:03 leethomason

Actually marking bug, try to get to this on the next pass.

leethomason avatar Sep 16 '20 01:09 leethomason