Take the 2-minute tour ×

I'm using TinyXml to parse some XML that has some HTML Entities embedded in text nodes. I realize that TinyXML is just an XML parser, so I don't expect or even want TinyXML to do anything to the entities. In fact I want it to leave them alone.

If I have some XML like this:


Calling Value() on the TiXmlText instance I get:


So TinyXml always seems to remove the ampersand. Is there any way I can get it to leave it alone so it comes out unchanged?

Appreciate any ideas..

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

If you look at the TinyXML documentation you'll see that it recognizes only five character entities (&uuml; is not one of them), plus Unicode code point syntax &#xA0; or &#160;.

share|improve this answer
I see that, my problem is that it ruins entities it doesn't understand (by dropping the ampersand). I want it to simply pass through entities it doesn't understand. –  maxpenguin Dec 8 '10 at 23:14
I suspect that's a bug and you'll probably have to take it up with the author. There's an email link on the main TinyXML web page. –  Jim Garrison Dec 8 '10 at 23:29
okay, I will try that - thanks. –  maxpenguin Dec 9 '10 at 2:56
add comment

Your Answer


