HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
The following code fragment loads "books.xml" into xmlDoc, loops through the <book> elements and removes the category attributes
The removeNamedItem() method removes the specified node.
If the removed attribute has a default value, a new attribute immediately appears containing the default value as well as the namespace URI, local name, and prefix, if any.
This method returns the removed node.
removeNamedItem(nodename)
Parameter | Description |
---|---|
nodename | The name of the node to remove |
❮ NamedNodeMap Object