tinyxml2 icon indicating copy to clipboard operation
tinyxml2 copied to clipboard

Keeping 
 and 
 in XML text (carriage returns and linefeeds)

Open rcrowell23 opened this issue 4 years ago • 0 comments

Hi there,

I just started using TinyXML2, and I have to say it's fantastic! It took me very little time to get everything working exactly as I wanted...except for one thing. I am using the library in a program that sucks in an XML file, modifies it a bit, and writes it back out. (The file is actually an XML representation of a circuit schematic from OrCAD Capture software.)

OrCAD embeds carriage returns and linefeeds in XML attributes as hex representations in the form and . When saving out the new file, TinyXML2 removes those strings and replaces them with actual linefeeds and/or carriage returns. Unfortunately, OrCAD can't handle that formatting.

Is there any way to get TinyXML2 to keep the hex representation of these embedded carriage returns/linefeeds?

Thanks for any help! Ryan

rcrowell23 avatar Dec 06 '21 22:12 rcrowell23