Okay .....i have a document, i have inserted a few values into a few of its nodes, and now i wanna validate that document. I am using JAXP....IN jaxp i dont see a way to validate a document
the only way i see is to use a document builder and validate it
like this
docBuilderFactory.setValidating(validation);
Document
doc = null;
try {
doc = docBuilder.parse(new File(filename));
} catch (SAXException se) {
System.err.println(se.getMessage());
System.exit(1);
} catch (IOException ioe) {
System.err.println(ioe);
System.exit(1);
}
but i already have a parsed document, i wanna validate this document, how can i achieve this...thanks in advance