XmlElement Data Type
Represents an XML element.
The following methods are available on the XmlElement data type.
Method name | Description |
---|---|
Create(String) | Creates an XmlElement node. |
Create(String, String) | Creates an XmlElement node. |
Create(String, String, Any,...) | Creates an XmlElement node. |
Create(String, Any,...) | Creates an XmlElement node. |
The following methods are available on instances of the XmlElement data type.
Method name | Description |
---|---|
HasAttributes() | Gets a boolean value indicating whether this element has at least one attribute. |
HasElements() | Gets a value indicating whether this element has at least one child element. |
IsEmpty() | Gets a value indicating whether this element contains no content. |
Name() | Gets the fully qualified name of this element. |
LocalName() | Gets the local name of this element. |
NamespaceUri() | Gets the namespace URI of this element. |
InnerXml() | Gets the markup representing only the child nodes of this node. |
InnerText() | Gets the concatenated values of the node and all its child nodes. |
GetNamespaceOfPrefix(String, var Text) | Gets the namespace associated with a particular prefix for this element. |
GetPrefixOfNamespace(String, var Text) | Gets the prefix associated with a namespace URI for this element. |
RemoveAllAttributes() | Removes the attributes of this element. |
RemoveAttribute(String) | Removes the specified attribute from this element. |
RemoveAttribute(String, String) | Removes the specified attribute from this element. |
RemoveAttribute(XmlAttribute) | Removes the specified attribute from this element. |
SetAttribute(String, String) | Sets the value of the specified attribute or create it if is not part of the element's attribute collection. |
SetAttribute(String, String, String) | Sets the value of the specified attribute or create it if is not part of the element's attribute collection. |
Attributes() | Gets a collection of the attributes of this element. |
AsXmlNode() | Converts the node to an XmlNode. |
GetParent(var XmlElement) | Gets the parent XmlElement of this node. |
GetDocument(var XmlDocument) | Gets the XmlDocument for this node. |
AddAfterSelf(Any,...) | Adds the specified content immediately after this node. |
AddBeforeSelf(Any,...) | Adds the specified content immediately before this node. |
ReplaceWith(Any,...) | Replaces this node with the specified content. |
Remove() | Removes this node from its parent element. |
WriteTo(OutStream) | Serializes and saves the current node to the given variable. |
WriteTo(XmlWriteOptions, OutStream) | Serializes and saves the current node to the given variable. |
WriteTo(var Text) | Serializes and saves the current node to the given variable. |
WriteTo(XmlWriteOptions, var Text) | Serializes and saves the current node to the given variable. |
SelectSingleNode(String, var XmlNode) | Selects the first XmlNode that matches the XPath expression. |
SelectSingleNode(String, XmlNamespaceManager, var XmlNode) | Selects the first XmlNode that matches the XPath expression. |
SelectNodes(String, var XmlNodeList) | Selects a list of nodes matching the XPath expression. |
SelectNodes(String, XmlNamespaceManager, var XmlNodeList) | Selects a list of nodes matching the XPath expression. |
Add(Any,...) | Adds the specified content as a child of this element. |
AddFirst(Any,...) | Adds the specified content at the start of the child list of this element. |
ReplaceNodes(Any,...) | Replaces the children nodes of this element with the specified content. |
RemoveNodes() | Removes the child nodes from this element. |
GetChildNodes() | Gets a list containing the child elements for this element, in document order. |
GetChildElements() | Gets a list containing the child elements for this element, in document order. |
GetChildElements(String) | Gets a list containing the child elements for this element, in document order. |
GetChildElements(String, String) | Gets a list containing the child elements for this element, in document order. |
GetDescendantNodes() | Gets a list containing the descendant nodes for this element, in document order. |
GetDescendantElements() | Gets a list containing the descendant elements for this element, in document order. |
GetDescendantElements(String) | Gets a list containing the descendant elements for this element, in document order. |
GetDescendantElements(String, String) | Gets a list containing the descendant elements for this element, in document order. |
See Also
Feedback
Loading feedback...