From http://www.w3schools.com (Copyright Refsnes Data)
Complete Document Object Reference
The getElementsByTagNameNS() method returns a NodeList of all elements with a specified name and namespace.
| getElementsByTagNameNS(ns,name) |
| Parameter | Description |
|---|---|
| ns | A string that specifies the namespace name to search for. The value "*" matches all tags |
| name | A string that specifies the tagname to search for. The value "*" matches all tags |
The following code fragment loads "books.xml" into xmlDoc using loadXMLDoc() and adds an element node with a namespace to each <book> element:
Example
Try it yourself » |
Complete Document Object Reference
From http://www.w3schools.com (Copyright Refsnes Data)