XML Validation Problem

Krushna B <[email protected]> Tue, 20 Apr 2004 19:08:43 +0530
Newsgroups gmane.text.xml.sax.general
Message-ID <[email protected]>
Hi there,

I am trying to validate an XML file against an XSD through JDOM.

I use the following code:

SAXBuilder builder = new SAXBuilder(true);
builder.setFeature("http://xml.org/sax/features/validation", true);
builder.setProperty("http://xml.org/sax/properties/validate", 
"file:///usr/local/krushna/xsdvalid-25p1/xsd.xsd");
Document doc = builder.build(input);

And I get the error:
http://xml.org/sax/properties/validate property not recognized for SAX 
driver org.apache.crimson.parser.XMLReaderImpl

Could anyone tell me what URI's need to be set in setFeature and 
setProperty?

Sorry if this has been asked before,
Thanks in advance,
Krushna


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
List: [email protected]
See:  http://www.saxproject.org
https://lists.sourceforge.net/lists/listinfo/sax-users