XMLTools - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

Home : Support : Online Help : Connectivity : Web Features : XMLTools : XMLTools/XMLDocument

XMLTools

 XMLDocument
 XML document constructor

 Calling Sequence XMLDocument(xmlTree)

Parameters

 xmlTree - Maple XML tree; document content

Description

 • The XMLDocument(xmlTree) command is a constructor for complete XML documents. None of the other XML constructors validates its content; this is done solely by the document constructor (XMLDocument), which must be called on the complete document content after it has been constructed.

Examples

 > $\mathrm{with}\left(\mathrm{XMLTools}\right):$
 > $\mathrm{XMLDocument}\left(\mathrm{XMLElement}\left("a",\left["b"="c"\right],"some text"\right)\right)$
 ${\mathrm{_XML_Document}}{}\left({\mathrm{_XML_Element}}{}\left({\mathrm{_XML_ElementType}}{}\left({"a"}\right){,}\left[{\mathrm{_XML_Attribute}}{}\left({\mathrm{_XML_AttrName}}{}\left({"b"}\right){,}{\mathrm{_XML_AttrValue}}{}\left({"c"}\right)\right)\right]{,}\left[{\mathrm{_XML_Text}}{}\left({"some text"}\right)\right]\right)\right)$ (1)

 See Also