@Test public void validateDocumentWithDoctype_invalid() throws Exception { final Document doc = parseResourceDocument("/testng-invalid.xml"); XMLValidatingParser iut = new XMLValidatingParser(); NodeList errList = iut.validate(doc, null); assertEquals("Unexpected number of validation errors reported.", 2, errList.getLength()); }
public NodeList validate(Document doc, Document instruction) throws Exception { return schemaValidation(doc, instruction).toNodeList(); }
XMLValidatingParser { public NodeList validate(Document doc, Document instruction) throws Exception { return schemaValidation(doc, instruction).toNodeList(); } }
XMLValidatingParser { public NodeList validate(Document doc, Document instruction) throws Exception { return schemaValidation(doc, instruction).toNodeList(); } XMLValidatingParser();  XMLValidatingParser(Document schema_links); }
XMLValidatingParser { public NodeList validate(Document doc, Document instruction) throws Exception { return schemaValidation(doc, instruction).toNodeList(); } XMLValidatingParser();  XMLValidatingParser(Document schema_links); Document parse(URLConnection uc, Element instruction,
			PrintWriter logger); boolean checkXMLRules(Document doc, Document instruction); NodeList validate(Document doc, Document instruction); Element validateSingleResult(Document doc, Document instruction); }
XMLValidatingParser { public NodeList validate(Document doc, Document instruction) throws Exception { return schemaValidation(doc, instruction).toNodeList(); } XMLValidatingParser();  XMLValidatingParser(Document schema_links); Document parse(URLConnection uc, Element instruction,
			PrintWriter logger); boolean checkXMLRules(Document doc, Document instruction); NodeList validate(Document doc, Document instruction); Element validateSingleResult(Document doc, Document instruction);  }