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

Validating against xsd with choice tag gives Invalid XSD schema #19

Open
taratoga opened this issue May 9, 2017 · 1 comment
Open

Comments

@taratoga
Copy link

taratoga commented May 9, 2017

if using the "choice" tag in the xsd gives an "Invalid XSD schema" error.

using this as test:

<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="person">
xs:complexType
xs:choice
<xs:element name="employee" type="employee"/>
<xs:element name="member" type="member"/>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>

@albanm
Copy link
Owner

albanm commented May 9, 2017

This node library is only a wrapper to the XSD validation functions from the libxml library. My guess is that your problem is not with the node wrapper.

You can try validating without the wrapper using xmllint, something like this :

xmllint --noout --schema XSD_FILE XML_FILE

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

2 participants