This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes SAX XSD Validation.  Error callback is called twice. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "SAX XSD Validation.  Error callback is called twice." Watch "SAX XSD Validation.  Error callback is called twice." New topic
Author

SAX XSD Validation. Error callback is called twice.

Mark Reyes
Ranch Hand

Joined: Jul 09, 2007
Posts: 426
Hi All,

I have some doubt regarding schema validation using SAX parser. Please take a look at my code.





When I run below code using eclipse, I am getting below output.



I intentionally add another tag which is not allowed in the schema. But my concern is that the first line of error says that it cannot find my xsd file.
But on the second error callback, it was able to point out the correct error.

Is this normal or something is wrong with my code? Thanks.


Sean Clark ---> I love this place!!!
Me ------> I definitely love this place!!!
 
jQuery in Action, 2nd edition
 
subject: SAX XSD Validation. Error callback is called twice.
 
Similar Threads
Validating an Instance Document
schema validator
XML Parsing and Validation with SAX parser shoots CPU to 100% utilization
schema validator
Validating XML aginst XSD