namednodemapsetnameditemns07
IBM
The method setNamedItemNS adds a node using its namespaceURI and localName and
raises a INUSE_ATTRIBUTE_ERR Raised if arg is an Attr that is already an
attribute of another Element object.
Retreieve the attributes of first element whose localName is address into a named node map.
Retreive the attribute whose namespaceURI=http://www.usa.com and localName=domestic
from the NamedNodeMap. Retreieve the attributes of second element whose localName is address
into a named node map. Call the setNamedItemNS method on the second nodemap with the domestic
attribute that was retreived and removed from the first nodeMap as an argument.
Assuming that when an attribute is removed from a nodemap, it still remains in the domtree
his should raise an INUSE_ATTRIBIUTE_ERR.
Neil Delima
2002-04-28