This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes XMLReader / SAXParser.getReader()   ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "XMLReader / SAXParser.getReader()   ??" Watch "XMLReader / SAXParser.getReader()   ??" New topic
Author

XMLReader / SAXParser.getReader() ??

Kristof Camelbeke
Ranch Hand

Joined: Nov 28, 2001
Posts: 97
I've been messing around with the following code and something strange happens...



when I use the XMLReader instance created by the XMLReaderFactory the validation works fine but when I create an XMLReader instance from the SAXParser.getReader() then it will not do any validation because it can't find for some reason the XSD schema definition file...

How can this be possible, an XMLReader is a XMLReader isn't it ? They both use the Xerces as the implementation so I can't see why in one situation it works and in the other it won't... Or am I missing something ?

Kristof
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: XMLReader / SAXParser.getReader() ??
 
Similar Threads
Encoding troubles when applying stylesheets through Xalan
Exception in schema validation
SAX parse and validate with XSD
Entities in attribute values issue in Sax parser
parsing confusion