[jboss-dev-forums] [JBoss AS7 Development] - AS7 XML Parser Validation [Proposed Idea]

Darran Lofthouse do-not-reply at jboss.com
Tue Sep 27 14:09:48 EDT 2011


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.
--------------------------------------------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20110927/31668d56/attachment.html 


More information about the jboss-dev-forums mailing list