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

Schema detected from xml file #12

Closed
afrin216 opened this issue Feb 14, 2017 · 5 comments
Closed

Schema detected from xml file #12

afrin216 opened this issue Feb 14, 2017 · 5 comments

Comments

@afrin216
Copy link

afrin216 commented Feb 14, 2017

Currently we need to specify the schema for xml validation in one way or another. Is it possible to auto-detect the schema from any schema information given in the xml file itself?

@rosslamont
Copy link
Contributor

I have created a new open source project ixvc (https://github.com/rosslamont/jxvc) which provides a JAXP compliant validator which can auto detect schema information from an xml file. It supports the usual suspects, (DTD and XSI) but particularly adds support for ISO/IEC 19757-11:2011 xml-model processing instructions, which in turn can load Relax NG and in theory Schematron and NVDL. I'd be happy to integrate it to xml-maven-plugin.

@rosslamont
Copy link
Contributor

Regarding the original comment, you don't have to specify the schema via the pom. For normal did and xsd validation (e.g. using psi:schemaLocation in your xml file) it works fine as is.

@jochenw
Copy link
Member

jochenw commented Sep 25, 2017

I assume, this is fixed after pulling in #21?

@rosslamont
Copy link
Contributor

@jochenw - by and large. My library doesn't yet have a DTD validator, and won't for a while, but as far as this plugin goes, there's nothing else to do.

@jochenw
Copy link
Member

jochenw commented Sep 26, 2017

Thanks, Ross. That's sufficient, to me, to close this issue and to wait, what will happen.

Cheers!

@jochenw jochenw closed this as completed Sep 26, 2017
@rosslamont rosslamont added this to the Release 1.0.2 milestone Jan 16, 2018
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

No branches or pull requests

3 participants