comp • gb.xml • xmlelement

XmlElement (gb.xml)

This class represents an Element in a XML document.

This class inherits XmlNode.
This class is
Dim hXmlElement As XmlElement
creatable
.

Static methods

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

Properties

Methods
property Read AllChildNodes As XmlNode
AllChildNodes  
Returns a virtual collection of all the attribute nodes of this node.
Attributes  
property Read ChildElements As XmlElement
ChildElements  
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 FirstChild As XmlNode
FirstChild  
property Read FirstChildElement As XmlElement
FirstChildElement  
property Read IsCDATA As Boolean
IsCDATA  
property Read IsComment As Boolean
IsComment  
property Read IsElement As Boolean
IsElement  
property Read IsText As Boolean
IsText  
property Read LastChild As XmlNode
LastChild  
property Read LastChildElement As XmlElement
LastChildElement  
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 NextElement As XmlElement
NextElement  
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  
property Prefix As String
Prefix  
Returns the node immediately preceding this node. If there is no such node, this property returns NULL.
Previous  
property PreviousElement As XmlElement Returns the element immediately preceding this element. If there is no such element, this property returns NULL.
PreviousElement  
property Read PreviousSibling As XmlNode
PreviousSibling  
property TagName As String
TagName  
property TextContent As String
TextContent  
property Read Type As Integer
Type  
A synonym for the TextContent property.
Value  
Adds the node NewChild to the end of the list of children of this node.
AppendChild  
Sub AppendChildren ( NewChildren As XmlNode )
AppendChildren  
Sub AppendFromText ( Data As String )
AppendFromText  
Sub AppendText ( NewText As String )
AppendText  
Sub ClearChildren ( )
ClearChildren  
Function GetAttribute ( Name As String ) As String
GetAttribute  
Function GetChildrenByAttributeValue ( Attribute As String, Value As String [ , Depth As Integer ] ) As XmlElement
GetChildrenByAttributeValue  
Returns all the child elements whose namespace prefix matches Name.
GetChildrenByNamespace  
Returns all the child elements whose tag name matches Name.
GetChildrenByTagName  
Function GetUserData ( Key As String ) As Variant
GetUserData  
Inserts the node NewChild after the existing node Child.
InsertAfter  
Sub InsertBefore ( Child As XmlNode, NewChild As XmlNode ) Inserts the node NewChild before the existing node Child.
InsertBefore  
Function IsAttributeSet ( Name As String ) As Boolean
IsAttributeSet  
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  
Adds the node NewChild to the beginning of the list of children of this node.
PrependChild  
RemoveAttribute  
Removes OldChild from the list of children.
RemoveChild  
Replaces the child node OldChild with NewChild in the list of children.
ReplaceChild  
Sub SetAttribute ( Name As String, Value As String )
SetAttribute  
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