1

Which Java XML libraries can do SAX-based parsing and validation against an XML Schema (XSD) at the same time?

I'm really looking for the most efficient solution for reading and validating large XML files.

bonus points if you can provide sample code.

2 Answers 2

2

Xerces which is part of the Sun JDK can do validation. You can see in the docs.

Sign up to request clarification or add additional context in comments.

Comments

2

As suggested by Robert , Xerces provides SAX-based parsing and XSD validation.

You can checkout example at :

http://www.herongyang.com/XML-Schema/Xerces2-XSD-Validation-with-SAXParser.html

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.