Darran Lofthouse [
http://community.jboss.org/people/dlofthouse] commented on the document
"AS7 XML Parser Validation [Proposed Idea]"
To view all comments on this document, visit:
http://community.jboss.org/docs/DOC-17243#comment-7722
--------------------------------------------------
Turning on JAXP validation would however do nothing to validate our parser implementations
match the schema. At runtime the schemas are as good as non-existent, it does not matter
if the XML does or does not match the schema if the parser does not match the schema.
This proposed change firstly allows the error reporting to be centralised allowing the
current error reporting code in the parsers to be removed, secondly the change in calls
allows us to provide a test framework that validates the calls made by the parser do match
the definition in the schema.
--------------------------------------------------