removeNamedItem (DOMNamedNodeMap - JavaScript)

Removes a node by name.

Defined in

DOMNamedNodeMap

Syntax

removeNamedItem(name:string) : DOMNode

Parameters Description
string The name of the node.
Return value Description
DOMNode The node or null. An invalid name returns null.

Examples

This button gets the child nodes below the schema level of a DOM where requestScope.n is the location of a document in the database, and gets a named attribute for each element.
If the input XML to the DOM is as follows:
The display appears as follows: