Code example for ProcessingInstruction

Methods: getDatagetTarget

0
        } 
 
        public void testProcessingInstruction(ProcessingInstruction instr) {
            Assert.assertFalse("testProcessingInstruction called", piCalled);
            piCalled = true;
            Assert.assertEquals("target", instr.getTarget());
            Assert.assertEquals("processing-instruction", instr.getData());
        } 
 
        public void testText(Text text) {
            Assert.assertFalse("testText called", textCalled);
            textCalled = true;
            Assert.assertEquals("barhello", text.getNodeValue());
        } 
 
        public void noMoreNodes(NodeTest t) {
            Assert.assertFalse("noMoreNodes called", noMoreNodesCalled);
            noMoreNodesCalled = true;
        } 
 
        void verify() {