RE: Validation of a JDOMtree (already loaded inmemory) with XSD schema

[email protected]
Newsgroups gmane.comp.java.jdom.general
Message-ID <[email protected]>
the last post was an answer on:

Yes you can do this with the javax.xml.validation package.

example:

SchemaFactory sf = SchemaFactory.newInstance(XMLConstants.

SAXParserFactory spf = SAXParserFactory.newInstance();

spf.setSchema(

ValidatorHandler vh =
schema);schema.newValidatorHandler();
SAXOutputter so =

so.output(

}

new SAXOutputter(vh);try {jDOMDocument);catch (JDOMException e) { // TODO Auto-generated catch block
e.printStackTrace();
}

W3C_XML_SCHEMA_NS_URI);javax.xml.validation.Schema schema = sf.newSchema(new File(SchemaUrl));

Dit bericht is onderworpen aan de voorwaarden beschikbaar op onze website

Ce message est soumis aux conditions disponibles sur notre site web

This message is subject to the terms and conditions available on our website

_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.