I'm doing exactly this with:

domparser.setProperty("http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation";, schema);
domparser.setFeature("http://xml.org/sax/features/validation";, true);


domparser.setFeature("http://apache.org/xml/features/validation/schema";, true);

where schema is the full path to the xsd file.

kr,
Reinhard

Bromberg, Dirk / encoway wrote:
But this does only work if the xsd location is in the xml file.
I'll validate without having the xsd attribute in my xml file!

-- Reinhard Brandstaedter [EMAIL PROTECTED] GPG: 0x033B81DB - Student of Computer Science - J.K. University of Linz - - <ICQ: 73059068> <Mobile: +43 699 12419541> - - http://adelaide.dnsalias.net -

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to