From http://www.w3schools.com (Copyright Refsnes Data)
Complete Element Object Reference
The getAttributeNode() method gets an attribute node by name from the current element.
| elementNode.getAttributeNode(name) |
| Parameter | Description |
|---|---|
| name | Required. Specifies the attribute node to get |
The following code fragment loads "books.xml" into xmlDoc using loadXMLDoc() and gets the "category" attribute from all <book> elements:
Example
Output:
Try it yourself » |
Complete Element Object Reference
From http://www.w3schools.com (Copyright Refsnes Data)