XMLTools
ToString
format an XML element as a Maple string
Calling Sequence
Parameters
Description
Examples
ToString(xmlTree)
xmlTree
-
Maple XML tree; XML element
The ToString(xmlTree) command formats the XML element xmlTree as an XML document (stored as a Maple string).
The returned XML document is formatted without line breaking or indentation of any kind. As a result, regardless of size, the document is returned as a single line of text. To display the output in a more readable format, use Print.
with⁡XMLTools:
ToString⁡XMLElement⁡elt,,content
<?xml version='1.0' encoding='ISO-8859-1'?> <elt>content</elt>
ToString⁡XMLElement⁡a,,XMLElement⁡b,XMLElement⁡c,attr=val,text
<?xml version='1.0' encoding='ISO-8859-1'?> <a><b/><c attr='val'>text</c></a>
See Also
XMLTools[ParseString]
XMLTools[Print]
Download Help Document
What kind of issue would you like to report? (Optional)