Menu

Text element and white space

Developer
2006-11-08
2013-05-20
  • Koen Tanghe

    Koen Tanghe - 2006-11-08

    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

     
    • Lee Thomason

      Lee Thomason - 2006-12-03

      White space is an area of TinyXML that needs work. It sounds like calling:

      SetCondenseWhiteSpace( false )

      ...will address your problem however.

      lee

       

Log in to post a comment.