You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: