Now, I know this had been talked about before (just did some search work in the forums) but I was wondering what would be the best way to be able to store AND retrieve text strings to/from a text element, without losing any white space?
From what I could find, it seems like you can control white space condensation for white space *within* a text element, but not for leading and trailing white space. Storing is fine, retrieving not. Is this still the case in the latest stable release?
By the way, I'm currently using TinyXML 2.4.3, so maybe this has been fixed in a later version?
If it's not fixed, what is the best way (workaround) to able to still do it?
Koen
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
First of all, thanks for creating TinyXML!
Now, I know this had been talked about before (just did some search work in the forums) but I was wondering what would be the best way to be able to store AND retrieve text strings to/from a text element, without losing any white space?
From what I could find, it seems like you can control white space condensation for white space *within* a text element, but not for leading and trailing white space. Storing is fine, retrieving not. Is this still the case in the latest stable release?
By the way, I'm currently using TinyXML 2.4.3, so maybe this has been fixed in a later version?
If it's not fixed, what is the best way (workaround) to able to still do it?
Koen
White space is an area of TinyXML that needs work. It sounds like calling:
SetCondenseWhiteSpace( false )
...will address your problem however.
lee