Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XSD support in mapper/config XML (revised) #1531

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

harawata
Copy link
Member

This is an alternative approach to fix #1193 .

Unlike the previous PR #1393 , this one does not require any configuration nor switch.
It tries to read using DTD first and if it fails, re-read the same file using XSD.
Note that a caller must pass the new org.apache.ibatis.io.Resource object instead of Reader/InputStream so that MyBatis can re-read the same file twice.

mybatis-spring may need adjustment like this.

@jeffgbutler ,
It is a little bit rough, but should be enough to evaluate the concept.
Please review when you have time!
No rush, of course. :)

Pass around Resource instead of InputStream/Reader so that XPathParser can re-read the file.
@harawata harawata force-pushed the xsd-support-custom-resource branch from c9d56f3 to c638f66 Compare April 26, 2019 03:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Configuring SQL statement using XSD
1 participant