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

Unable to Parse Schema when CommonTypes are Not Included #62

Open
nijogeorgep opened this issue May 19, 2020 · 0 comments
Open

Unable to Parse Schema when CommonTypes are Not Included #62

nijogeorgep opened this issue May 19, 2020 · 0 comments

Comments

@nijogeorgep
Copy link

I have few XSD files, which has commonTypes included in some of the files and some are not.
<xsd:include schemaLocation="common/CommonTypes.xsd"/>
There is also a binding file where this commontype is defined.

<bindings schemaLocation="../common/CommonTypes.xsd"> <bindings node="//xsd:complexType[@name='SegmentIDRef']"> <class name="SegmentIDRefTypeFromCommonTypes"/> </bindings> </bindings>

I'm not able to parse the files which have no common types included. The xjc parsing gives me the following error

[ant:xjc] [ERROR] "file:/Users/a-8845/Downloads/spring-gradle-app/src/main/resources/schemas/farelogix/common/CommonTypes.xsd" is not a part of this compilation. Is this a mistake for "file:/Users/a-8845/Downloads/spring-gradle-app/src/main/resources/schemas/farelogix/CCValidationRQ.xsd"? [ant:xjc] line 10 of file:/Users/a-8845/Downloads/spring-gradle-app/src/main/resources/schemas/farelogix/binding/bindings.xjb [ant:xjc]

How can i prevent this issue ? Can someone help?

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

1 participant