W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2001

AW: XML Schema validation

From: Franz-Josef Herpers <franz-josef.herpers@spmtechnologies.com>
Date: Wed, 22 Aug 2001 14:58:20 +0200
Message-ID: <EFB16FB1CC4AD511AD670003470D774946216A@mail.spm.de>
To: xmlschema-dev@w3.org
Hi,

> Please let me know if I am missing something here to 
> validate this.

You are using Xerces. With Xerces you have to turn on the validation feature
(http://xml.apache.org/xerces-j/features.html)

try {
  p.setFeature("http://xml.org/sax/features/validation", true);
} catch (SAXException e) {
  System.out.println("error in setting up parser feature");
}

Hope this helps
Franz
Received on Wednesday, 22 August 2001 08:58:28 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:23 GMT