comp • gb.xml • xmlnode

XmlNode (gb.xml)

The Node class is the base type for the entire Document Object Model. It represents a single node in the document tree.

This class is not creatable.

Static methods

Constants
Deserialize  
Static Function Serialize ( Data As String ) As String
Serialize  
AttributeNode  
Const CDATASectionNode As Integer = 4
CDATASectionNode  
CommentNode   ElementNode   TextNode  

Properties

Methods
Returns a virtual collection of all the attribute nodes of this node.
Attributes  
A synonym for the Children property.
ChildNodes  
Returns an array containing all children of this node. If there are no children, returns an empty array.
Children  
property Read Element As XmlElement
Element  
property Read IsCDATA As Boolean
IsCDATA  
property Read IsComment As Boolean
IsComment  
property Read IsElement As Boolean
IsElement  
property Read IsText As Boolean
IsText  
This property returns the name of the node.
Name  
Returns node immediately following this node. If there is no such node, this property returns NULL.
Next  
property Read NextSibling As XmlNode
NextSibling  
property Read OwnerDocument As XmlDocument
OwnerDocument  
Returns the parent of this node. All nodes may have a parent. However, if a node has just been created and not yet added to the tree, or if it has been removed from the tree, this property returns NULL.
Parent  
Returns the node immediately preceding this node. If there is no such node, this property returns NULL.
Previous  
property Read PreviousSibling As XmlNode
PreviousSibling  
property TextContent As String
TextContent  
property Read Type As Integer
Type  
A synonym for the TextContent property.
Value  
Function GetUserData ( Key As String ) As Variant
GetUserData  
Creates a new attribute node, sets its name and value with the Name and Value arguments, and adds it to the current node.
NewAttribute  
Creates a new element, sets its name and value with the Name and Value arguments, and adds it to the current node.
NewElement  
Associate an object to a key on this node. The object can later be retrieved from this node by calling GetUserData with the same key.
SetUserData  
Function ToString ( [ Indent As Boolean ] ) As String
ToString