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 VAST files #3

Open
gpaluk opened this issue Dec 14, 2018 · 0 comments
Open

Unable to parse VAST files #3

gpaluk opened this issue Dec 14, 2018 · 0 comments

Comments

@gpaluk
Copy link

gpaluk commented Dec 14, 2018

I am trying to generate a JSON file against the following XML and schema:

http://52.43.137.19/vast/vast_example.xml
http://52.43.137.19/vast/vast_schema.xsd

I am using Linux so I use the following command line call.

java -Djava.endorsed.dirs=lib/commons-io-2.4:lib/commons-lang3-3.3.2:lib/xerces-2_11_0-xml-schema-1.1-beta -jar sax2j.jar vast_example.xml vast_schema.xsd > vast.json

However, I receive the following exception:

Using XML Schema 1.1 to parse vast_example.xml Exception in thread "main" org.xml.sax.SAXParseException: s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw '2.0'.

I am not sure where or not this is due to the XML spec being 1.0 or 1.1 etc, however I have tested the validity of both the XML and of the schema using online services which seem to imply that they are both correct and I checked that the XML passes the schema definition using those same online services. Perhaps someone here might be able to see what I am doing wrong or validate if there is some issue with the parser?

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