I'm creating a new XML Document that has some tags that have no innertext.
If I populate the innertext with some data then it works as needed in this instance, namely you get opening tag, innertext and closing tag all on one line:
<testtag>somevalue</testtag>
The problem arises with tags with no values. These need to be displayed in the same manner as above:
<testtag></testtag>
However, if I populate the innertext with an empty string it adds a carriage return & line feed which is not what the importing software needs.
<testtag>
</testtag>
If I leave innertext null then I get a self closing tag . Again this isn't as required.
I've tried removing /n and /r from innertext as some other posts have suggested but as soon as the document is saved the same issue occurs.