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 ]

At 2:26 PM -0300 3/29/04, Jose Airton wrote:
I found this solution:

     SAXParserFactory factory = SAXParserFactory.newInstance();
     SAXParser saxParser = factory.newSAXParser();
     XMLReader xmlReader = saxParser.getXMLReader();

This likely will not work because the parser you have created is not 
namespace aware.

Do not use SAXParserFactory or SAXParser ever. Use XMLReaderFactory 
and XMLReader instead.

   Elliotte Rusty Harold
   Effective XML (Addison-Wesley, 2003)


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

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