org.w3c.domts.level2.core
Class documentimportnode01
public final class documentimportnode01
The importNode method imports a node from another document to this document.
The returned node has no parent; (parentNode is null). The source node is not
altered or removed from the original document but a new copy of the source node
is created.
Using the method importNode with deep=true, import the attribute, "street" of the second
element node, from a list of nodes whose local names are "address" and namespaceURI
"http://www.nist.gov" into the same document. Check the parentNode, nodeName,
nodeType and nodeValue of the imported node to verify if it has been imported correctly.
String | getTargetURI()- Gets URI that identifies the test.
|
static void | main(String[] args)- Runs this test from the command line.
|
void | runTest()- Runs the test case.
|
assertEqualAutoCase, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEqualsAutoCase, assertEqualsAutoCase, assertEqualsIgnoreCase, assertEqualsIgnoreCase, assertEqualsIgnoreCase, assertFalse, assertFalse, assertInstanceOf, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEqualsAutoCase, assertNotEqualsIgnoreCase, assertNotNull, assertNull, assertSame, assertSize, assertSize, assertSize, assertTrue, assertTrue, assertURIEquals, doMain, equals, equals, equals, equals, equals, equalsAutoCase, equalsAutoCase, equalsAutoCase, equalsIgnoreCase, equalsIgnoreCase, equalsIgnoreCase, fail, runTest, same, setFramework, size, size, size, wait |
createStream, createTempURI, createXPathEvaluator, getContentType, getFactory, getImplementation, getMutationCount, getResourceURI, getTargetURI, hasFeature, hasSetting, isCoalescing, isExpandEntityReferences, isHasNullString, isIgnoringElementContentWhitespace, isNamespaceAware, isSigned, isValidating, load, preload, setFactory |
getTargetURI
public String getTargetURI()
Gets URI that identifies the test.
- getTargetURI in interface DOMTest
main
public static void main(String[] args)
Runs this test from the command line.
args - command line arguments
runTest
public void runTest()
throws Throwable Runs the test case.
- runTest in interface DOMTestCase