Code example for ProcessingInstruction

Methods: getData, getOwnerDocument, getTarget

0
//        entity2 = (Entity) entityList.getNamedItem("ent4"); 
//        entity1 = (Entity) doc.importNode(entity2, true); 
//        ownerDocument = entity1.getOwnerDocument(); 
//        docType = ownerDocument.getDoctype(); 
//        system = docType.getSystemId(); 
//        assertURIEquals("systemId", null, null, null, "staffNS.dtd", null, 
//                null, null, null, system); 
//        entityName = entity1.getNodeName(); 
//        assertEquals("entityName", "ent4", entityName); 
//        child = entity1.getFirstChild(); 
//        assertNotNull("notnull", child); 
//        childName = child.getNodeName(); 
//        assertEquals("childName", "entElement1", childName); 
//    } 
 
// Assumes validation 
//    public void testImportNode13() throws Throwable { 
//        Document doc; 
//        Document aNewDoc; 
//        DocumentType doc1Type; 
//        NamedNodeMap notationList;