[fpc-pascal] XML - Indent, text content, special char

Gabor Boros mlnglsts at bgss.hu
Sat Apr 27 13:29:40 CEST 2019


Hi All,

I have an existing XML file. After load(, modify) and save this file 
some mandatory formatting things lost from it. I need same indent as 
before, same text contents and not replace every special chars. With the 
below code I got the attached OUTPUT.xml from the attached INPUT.xml. 
Any idea how to solve this problem? (I use fixes_3_2.)

X:=TXMLDocument.Create;
ReadXMLFile(X,'INPUT.xml');
WriteXMLFile(X,'OUTPUT.xml');

Gabor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: INPUT.xml
Type: text/xml
Size: 214 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20190427/8ce5e2f8/attachment.xml>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OUTPUT.xml
Type: text/xml
Size: 198 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20190427/8ce5e2f8/attachment-0001.xml>


More information about the fpc-pascal mailing list