xml>string ( xml -- string )
Writing XML

Prev:write-xml ( xml -- )
Next:pprint-xml>string ( xml -- string )


Vocabulary
xml.writer

Inputs
xmla xml


Outputs
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.

Notes
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

Definition