/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; NodeList elemList; Element elem; ProcessingInstruction pi; String textContent; Node appendedChild; doc = (Document) load("hc_staff", true); elem = doc.createElementNS("http://www.w3.org/1999/xhtml", "xhtml:p"); pi = doc.createProcessingInstruction("PIT", "PID"); appendedChild = elem.appendChild(pi); pi.setTextContent("PID"); textContent = pi.getTextContent(); assertEquals("nodesettextcontent08", "PID", textContent); } /**