Discuss this help topic in SecureBlackbox Forum
XML: Save XML document
To save the data to the stream, call SaveToStream() method of TElXMLDOMDocument class.
You can specify the canonicalization method (or xcmNone for no canonicalization) and the desired charset of the output document. If the canonicalizaiton method and charset are not specified, the document is saved in utf-8 charset with no canonicalization.