To save XML in human readable format, using OmniXML you will need these lines of code:

 

xml := CreateXMLDoc;
xml.PreserveWhiteSpace := False;

...

xml.Save('c:file.xml',ofIndent);

ÂÂ