XML FOR DOMINO
Methods
getLength
getNamedItem
Item
removeNamedItem
setNamedItem
The number of nodes in the map. The range of valid child node indices is 0 to length-1 inclusive.
Syntax:
public int getLength()
Retrieves a node specified by name.
public Node getNamedItem(java.lang.String name)
Parameters:
item
Returns the nth item in the map. If index (n) is greater than or equal to the number of nodes in the map, this returns null.
public Node item(int index)
Removes a node specified by name. If the removed node is an Attr with a default value it is immediately replaced.
public Node removeNamedItem(java.lang.String name) throws DOMException
DOMException - NOT_FOUND_ERR: Raised if there is no node named name in the map.
Adds a node using its nodeName attribute.
As the nodeName attribute is used to derive the name which the node must be stored under, multiple nodes of certain types (those that have a "special" string value) cannot be stored as the names would clash. This is seen as preferable to allowing nodes to be given an alias.
public Node setNamedItem(Node arg) throws DOMException
NO_MODIFICATION_ALLOWED_ERR: Raised if this NamedNodeMap is Read-only.
INUSE_ATTRIBUTE_ERR: Raised if arg is an Attr that is already an attribute of another Element object. The DOM user must explicitly clone Attr nodes to reuse them in other elements.