setAttributeNodeNS04
NIST
The "setAttributeNodeNS(newAttr)" adds a new attribute.
If an attribute with that local name and that namespaceURI is already
present in the element, it is replaced by the new one.
Retrieve the first emp:address element and add a new attribute
to the element. Since an attribute with the same local name
and namespaceURI already exists, it is replaced by the new one and
returns the replaced "Attr" node.
This test uses the "createAttributeNS(namespaceURI,localName)
method from the Document interface to create the new attribute to add.
Mary Brady
2001-08-17