Hello!
I use
this property!
See my
code:
DOMParser domParser = new
DOMParser();
domParser.setFeature("http://xml.org/sax/features/namespaces",true);
domParser.setFeature("http://xml.org/sax/features/validation",true);
domParser.setFeature("http://apache.org/xml/features/validation/schema",true);
domParser.setFeature("http://apache.org/xml/features/validation/schema-full-checking",true);
domParser.setProperty("http://apache.org/xml/properties/schema/external-schemaLocation",SchemaUrl);
domParser.setFeature("http://xml.org/sax/features/namespaces",true);
domParser.setFeature("http://xml.org/sax/features/validation",true);
domParser.setFeature("http://apache.org/xml/features/validation/schema",true);
domParser.setFeature("http://apache.org/xml/features/validation/schema-full-checking",true);
domParser.setProperty("http://apache.org/xml/properties/schema/external-schemaLocation",SchemaUrl);
But
there is still an error because of the schema-location in the
xml-document!
Thomas
-----Ursprüngliche Nachricht-----
Von: Ankit Pasricha [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 15. September 2004 15:52
An: [EMAIL PROTECTED]
Betreff: Re: schema validation
See the http://apache.org/xml/properties/schema/external-schemaLocation property details in [1].
Use of this property will allow the schemaLocation entry in the instance document to be ignored.
[1] http://xml.apache.org/xerces2-j/properties.html
Ankit Pasricha
XML Parser Development
IBM Toronto Lab
8200 Warden Avenue, Ontario L6G 1C7
Phone: (905) 413 4941
[EMAIL PROTECTED] 09/15/2004 09:25 AM
Please respond to
[EMAIL PROTECTED]
To[EMAIL PROTECTED] cc Subjectschema validation
Hello!
I want to validate a XML-Document against a XML-Scheme.
For that purpose I tell the parser wich scheme it should use.
Somtimes a xml-document contains the location of the xml-scheme.
How can i configure the parser so that the location of the scheme in the xml-document
will be ignored?
Best regards,
Thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]