GenFormattedXmlString method: XmlDoc class
Syntax
GenFormattedXmlString()
Description
Use the GenFormattedXmlString method to return an XML string representing the XmlDoc object.
The GenFormattedXmlString method produces an XML string with new line characters and indents. If you want an unformatted XML string, that is, with all the data on a single line, use the GenXmlString method instead.
Parameters
None.
Returns
A formatted XML string.
Example
Local XmlDoc &inXMLDoc;
Local string &outStr;
&inXMLDoc = CreateXmlDoc("<?xml version='1.0'?><PSMessage/>");
&outStr = &inXMLDoc.GenFormattedXmlString();
Related Topics