Element Methods

This class inherits from the Node class.

Property Description
Get Attribute Node Retrieves an attribute by name. Details
Get Attribute Node NS Retrieves an attribute by local name and namespace URI. Details
Get Attribute NS Retrieves an attribute value by local name and namespace URI. Details
Get Elements By Tag Name Returns a list of all descendant elements with a tag name you specify, in the order that a preorder traversal of the Element tree would encounter the nodes. Details
Get Elements By Tag Name Array Returns an array of nodes of all descendant elements with a tag name that you specify, in the order in which a preorder traversal of the Element tree encounters the nodes. Details
Get Elements By Tag Name NS Returns a list of elements with a local name and namespace URI you specify, in the order that a preorder traversal of the Document tree would encounter them, starting from a node you specify. Details
Get Elements By Tag Name NS Array Returns an array of nodes of elements with a local name and namespace URI you specify, in the order that a preorder traversal of the Document tree would encounter them, starting from a node you specify. Details
Get Attribute Retrieves an attribute value by name. Details
Has Attribute Returns TRUE when an element contains an attribute with a name you specify, or if the attribute has a default value. Details
Has Attribute NS Returns TRUE when an element contains an attribute with a local name and namespace URI you specify, or if the attribute has a default value. Details
Remove Attribute Removes an attribute by name. If the removed attribute has a default value it is immediately replaced. Details
Remove Attribute Node Removes an attribute that you specify. If the removed attribute has a default value it is immediately replaced. Details
Remove Attribute NS Removes an attribute by local name and namespace URI. If the removed attribute has a default value it is immediately replaced. Details
Set Attribute Adds an attribute. If an attribute with the name you specify already exists in the element, its value changes to that of the Value parameter. Details
Set Attribute Node Adds an attribute. If an attribute with the name you specify already exists in the element, the new attribute replaces the existing attribute. If the new attribute replaces an attribute with the same name, the method returns the previously existing attribute as Old Attribute. Details
Set Attribute Node NS Adds a new attribute. If an attribute with the same local name and namespace URI already exists in the element, the new attribute replaces it. Details
Set Attribute NS Adds a new attribute. If an attribute with the same local name and namespace URI already exists on the element, the prefix of the existing element changes to the prefix part of the qualified name indicated in the Qualified Name parameter, and its value changes to the value indicated in the Value parameter. Details
Set XML Sets the XML text of an element. If the element already has a value, the value of the element changes to that of the XML String parameter. Details