OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] How to use SAX to validate XML against a schema?

[ Lists Home | Date Index | Thread Index ]

I found this solution:
 
    SAXParserFactory factory = SAXParserFactory.newInstance();
    SAXParser saxParser = factory.newSAXParser();
    XMLReader xmlReader = saxParser.getXMLReader();
    xmlReader.setFeature("http://apache.org/xml/features/validation/schema",  true);
----- Original Message -----
Sent: Sunday, March 28, 2004 12:56 PM
Subject: [xml-dev] How to use SAX to validate XML against a schema?

I have specified the messages format using
XML schema and would like to use SAX to validate
my data against said schema. All the examples
I have found on the web seem to validate against
DTDs and not schemas.
 
Could anybody please give me any help?
 
Regards,
 
jairton.
 




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS