TinyXML newbie needs help

2012-09-12
2013-05-20
  • Pedro Barbosa
    Pedro Barbosa
    2012-09-12

    Hello all,

    Let me start by saying that TinyXML lib is great and very easy to use.
    I am using TinyXML to build a xml programmatically  and I have a couple of questions:

    1. I need to add 1 or more empty lines between TIXmlElements to improve readability. See example below.
    Is this possible with TinyXML?
    <element1>

    </element1>

    <element2>

    </element2>

    2. The xml I am building is the merged with a 2nd XML file. So I need to add a tab to all TiXmlElements.  See example below.
    Is this possible with TinyXML?

        <element1>
        …
        </element1>

        <element2>
        …
        </element2>

    Thanks in advance.