The DOMAttribute object represents an XML attribute within an XML element.
DOMAttribute object inherits the properties and methods of the DOMNode object.
To obtain a DOMAttribute object in an existing document, you can use the getAttributeNode method of a DOMElement object, or the attributes property of a DOMNode object.
To add a DOMAttribute object to a DOM document, you can use the setAttributeNode method of a DOMElement object
Instance Properties
name |
A string denoting the name of the attribute. |
specified |
A Boolean value indicating whether the attribute was given a specific value in the original XML document. Read only. |
value |
A string denoting the value of the attribute |
ownerElement |
The DOMElement object of which the DOMAttribute object is a part. | |