Reputation: 5639
I need something like this:
<xmlData><elementA> (*) </elementA></xmlData>
(*) <xmlData2><elementB>HelloWorld</elementB></xmlData2>
How can I insert the (*) xml string to the placeholder in xmlData (well formed XML)? (parsed with tinyXML in C++)
Thank you very much!
Upvotes: 0
Views: 144
Reputation: 12496
Well, you could just use TinyXML to create your XML-DOM :-)
If you just want to use plain old printing, replace the following characters:
I also like to replace ">" with ">" for consistency.
Upvotes: 1