Inputs and outputs
xmlan XML document
stringa string

Word description
This converts an XML document xml into a string. It can also be used to convert any piece of XML to a string, eg an xml-chunk or comment.

This does not preserve what type of quotes were used or what data was omitted from version declaration, as that information isn't present in the XML data representation. The whitespace in the text nodes of the original document is preserved.

See also
write-xml, pprint-xml, pprint-xml>string