XMLNode
Class XMLNode

Method PrototypeDescription
Sub AppendChild( c As XMLNode )Append a child node to the current node.
Function AppendChild( c As XMLNode ) As XMLNodeAppend a child node to the current node, returning a reference to the appended child.
Function Child( index As Integer ) As XMLNodeReturns a child node for a zero-based index value.
Function Clone( deep As Boolean ) As XMLNodeReturns a duplicated copy of the current node. If deep is true then all of the child nodes of the current node will be duplicated as well.
Function Compare( n As XMLNode ) As IntegerCompares the current node to n and returns a numeric value for the result of the comparison which is similar to the string function StrCmp. (currentNode < n, return -1; currentNode = n, return 0; currentNode > n, return 1)
Function ChildCount() As IntegerReturn the count of the child nodes for the current node.
Function ErrorCode() As IntegerReturns the numeric code of the last error triggered by an XML node action, like trying to load invalid xml into an XMLDocument.
Function ErrorMessage() As StringReturns the text description of the last error triggered by an XML node action, like trying to load invalid xml into an XMLDocument.
Function FirstChild() As XMLNodeReturns the first child node for the current node. Should be the same result as calling XMLNode.Child(0).
Sub Insert( newChild As XMLNode, refChild As XMLNode )Insert newChild before refChild.
Function Insert( newChild As XMLNode, refChild As XMLNode ) As XMLNodeInsert newChild before refChild. Returns a reference to the inserted node.
Function LastChild() As XMLNodeReturns the last child node for the current node. Should be the same result as calling XMLNode.Child(XMLNode.ChildCount - 1).
Function LastError() As IntegerNumeric code of the last error.
Function LocalName() As StringName of the node without its prefix.
Sub Name( Assigns newValue As String )Assigns the name of the current node.
Function Name() As StringReturns the name of the current node.
Function NamespaceURI() As String
Function NextSibling() As XMLNodeReturns the next XMLNode in sequence.
Function OwnerDocument() As XMLDocumentReturns the XMLDocument in which the current node resides.
Function Parent() As XMLNodeReturns the immediate parent node of the current node.
Function Prefix() As StringReturns the namespace prefix of the current node.
Function PreviousSibling() As XMLNodeReturns the previous XMLNode in sequence.
Sub RemoveChild( oldChild As XMLNode )Removes the specified child from the current node.
Sub ReplaceChild( newChild As XMLNode, oldChild As XMLNode )Replace the oldChild node with the newChild node.
Function ReplaceChild( newChild As XMLNode, oldChild As XMLNode ) As XMLNodeReplace the oldChild node with the newChild node and return a reference to newChild.
Function ToString() As StringReturns a string representation of the current node.
Function Type() As IntegerReturns a numeric value indicating the type of the current node. Use the constants in XMLNodeType for comparisons.
Sub Value( Assigns newValue As String )Assigns the text value for some types of XMLNode, including XMLTextNode and XMLAttribute. It is not supported for all node types.
Function Value() As StringReturns the text value for some types of XMLNode, including XMLTextNode and XMLAttribute. It is not supported for all node types.
Function XQL( query As String ) As XMLNodeListPerforms an XPath query on the current node and returns an XMLNodeList containing the collection of all nodes that match the XQL query conditions.


XMLNode is the superclass of most of the other classes in the Document Object Model (DOM). You will rarely instantiate an XMLNode object. Instead, you'll likely instantiate its subclasses using methods in the XMLDocument class.