| Method Prototype | Description
|
| Sub Constructor() | Creates a new empty xml document.
|
| Sub Constructor( xml As String ) | Creates a new xml document, initially loaded with the xml passed as a parameter.
|
| Sub Constructor( f As FolderItem ) | Creates a new xml document, initially loaded with the contents of the file passed as a parameter.
|
| Function CreateAttribute( name As String ) As XMLAttribute | Returns a newly instantiated XMLAttribute object.
|
| Function CreateAttribute( uri As String, name As String ) As XMLAttribute | Returns a newly instantiated XMLAttribute using the passed namespace.
|
| Function CreateCDATASection( data As String ) As XMLCDATASection | Returns a newly instantiated XMLCDATASection, populated with the passed data.
|
| Function CreateComment( data As String ) As XMLComment | Returns a newly instantiated XMLComment, populated with the passed data.
|
| Function CreateElement( name As String ) As XMLElement | Returns a newly instantiated XMLElement object.
|
| Function CreateElement( uri As String, name As String ) As XMLElement | Returns a newly instantiated XMLElement using the passed namespace.
|
| Function CreateProcessingInstruction( target As String, data As String ) As XMLProcessingInstruction | Returns a newly instantiated XMLProcessingInstruction for the target and data.
|
| Function CreateTextNode( data As String ) As XMLTextNode | Returns a newly instantiated XMLTextNode, populated with the passed data.
|
| Function DocumentElement() As XMLElement | Returns the root level element for the document.
|
| Function ImportNode( foreignNode As XMLNode, deep As Boolean = false ) As XMLNode | Imports an XMLNode from another XMLDocument into the current document. If deep is true, all of the child nodes of foreignNode will be imported as well.
|
| Sub LoadXML( doc As String ) | Parses the passed xml string and loads it into the xml document object.
|
| Sub LoadXML( f As FolderItem ) | Parses the contents of the passed file and loads it into the xml document object.
|
| Sub PreserveWhiteSpace( Assigns newValue As Boolean ) | If set to true, all white space (spaces, carriage returns, tabs) will be preserved between elements in an XML document. If false, the white space will be removed. The default is False.
|
| Function PreserveWhiteSpace() As Boolean | If set to true, all white space (spaces, carriage returns, tabs) will be preserved between elements in an XML document. If false, the white space will be removed. The default is False.
|
| Sub SaveXML( f As FolderItem ) | Writes the contents of the xml document to the passed file.
|
| Function ToString() As String | Returns the contents of the xml document as a String.
|
| Function Transform( xsl As String ) As String | Returns the result of applying an SXLT stylesheet to the current document.
|
| Function Transform( xsl As XMLStyleSheet ) As String | Returns the result of applying an SXLT stylesheet to the current document.
|
You may use the XMLDocument class to read and parse existing xml documents or build up your own from scratch. All of the other
subclasses are typically instantiated from this class as well.