One common application is to use it to create the body of a request for HttpRequest or to parse a response accessed by HttpResponse.
The following are constructors for Document.
The following are methods for Document. All are instance methods.
public Dom.XmlNode createRootElement(String name, String namespace, String prefix)
Type: Dom.XmlNode
For more information about namespaces, see XML Namespaces.
Calling this method more than once on a document generates an error as a document can have only one root element.
public Dom.XmlNode getRootElement()
Type: Dom.XmlNode
public Void load(String xml)
Type: Void
Dom.Document doc = new Dom.Document();
doc.load(xml);
public String toXmlString()
Type: String