namednodemapSetNamedItem
NIST
The "setNamedItem(arg)" method adds a node using its
nodeName attribute.
Retrieve the second employee and create a NamedNodeMap
object from the attributes of the last child by
invoking the "getAttributes()" method. Once the
list is created an invocation of the "setNamedItem(arg)"
method is done with arg=newAttr, where newAttr is a
new Attr Node previously created. The "setNamedItem(arg)"
method should add then new node to the NamedNodeItem
object by using its "nodeName" attribute("district').
This node is then retrieved using the "getNamedItem(name)"
method. This test uses the "createAttribute(name)"
method from the document interface.
Mary Brady
2001-08-17