org.w3c.domts.level2.core
Class setAttributeNS04
public final
class
setAttributeNS04
extends DOMTestCase
The "setAttributeNS(namespaceURI,qualifiedName,value)" method adds a new attribute.
If an attribute with the same local name and namespace URI is already present
on the element, its prefix is changed to be the prefix part of the "qualifiedName",
and its vale is changed to be the "value" paramter.
null value if no previously existing Attr node with the
same name was replaced.
Add a new attribute to the "emp:address" element.
Check to see if the new attribute has been successfully added to the document
by getting the attributes value, namespace URI, local Name and prefix.
The prefix will be changed to the prefix part of the "qualifiedName"
and its value changed to the "value" parameter.
See Also: http://www.w3.org/TR/DOM-Level-2-Core/core#
Constructor.
Parameters: factory document factory, may not be null
Throws: org.w3c.domts.DOMTestIncompatibleException Thrown if test is not compatible with parser configuration
public String getTargetURI()
Gets URI that identifies the test.
Returns: uri identifier of test
public static void main(String[] args)
Runs this test from the command line.
Parameters: args command line arguments
public void runTest()
Runs the test case.
Throws: Throwable Any uncaught exception causes test to fail