From http://www.w3schools.com (Copyright Refsnes Data)
Complete Element Object Reference
The removeAttributeNS() method removes an attribute specified by namespace and name.
| elementNode.removeAttributeNS(ns,name) |
| Parameter | Description |
|---|---|
| ns | Required. Specifies the namespace of the attribute to remove |
| name | Required. Specifies the name attribute to remove |
The following code fragment loads "books_ns.xml" into xmlDoc using loadXMLDoc() and removes the "lang" attribute from the first <title> element:
Example
Output:
Try it yourself » |
Complete Element Object Reference
From http://www.w3schools.com (Copyright Refsnes Data)