[XOM-interest] XML Schema validation via JAXP

Elliotte Harold elharo at metalab.unc.edu
Sun Aug 12 18:45:41 EDT 2007


Peter Stibrany wrote:
> Hello,
> 
> Re 2: Installing custom error handler helped me to solve my problem on
> JDK 1.6. Thank you!
> 
> Re 1: why is XMLReaderFactory preferred over SAXParserFactory
> approach? If I would use XMLReaderFactory, I would need to rely on
> implementation-specific features to use schema validation.
> 

SAXParserFactory is designed to fill holes in SAX 1. It is designed and 
intended for SAX 1 code only. SAX 1 hasn't been in use since the last 
millennium. In 2007, SAX2 and XMLReaderFactory is the way to go.

-- 
Elliotte Rusty Harold  elharo at metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/


More information about the XOM-interest mailing list