Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.
I need to store a string in XML, and I want to preserve Carriage returns and Line Feeds. What is the normal way of doing this? Say I have the string (in my program) as:
"Start \n Finish"
My understanding is that CRs cannot be inside the string itself in XML as in:
because the CR is just treated as white space and will be skipped when reading. Or is the above legitimate?
Should I use the
? as in:
Or is there some other standard way of doing this?
Thanks in advance!
I have the same problem, I want to have text like
I can not find a way to do that in tinyXML, anybody can help?
Same problem. I have an XML file like this one:
When I read the XML file the Carriage Returns are not treated. I tried to use the
character and it worked but it's not very interesting.
Why the XMLSpy editor recognizes these characters but not TinyXml ?