Link to home
Start Free TrialLog in
Avatar of viswanathan sundaresan
viswanathan sundaresan

asked on

How to parse <assert> tag in XSD1.1 using XSOM Parser?

I have been using XSOM parser (xsom-20140925.jar) for parsing XSD 1.0 and able to achieve parsing all xs:elements and restrictions (like pattern, minOccurs etc..).

Lately our XSD1.0 been upgraded to version XSD1.1, where new <assert> tag been included. My XSOM parser fails to identify this assert tag and throws the following exception.

Could not parse the inputstream: org.xml.sax.SAXParseException: Unexpected <xsd:assert> appears at line. java.lang.NullPointerException

Any help and suggestions would help me solve the issue.
Thanks.
ASKER CERTIFIED SOLUTION
Avatar of Gertone (Geert Bormans)
Gertone (Geert Bormans)
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
Please accept https:#a41141126 as the answer
This question has been answered completely and this is an important question + answer to have in the database

assertions have been a long wanted feature for XML schema
with the advent of XSD1.1 assertions have been included to the schema language
but even after all this time, there are only two parsers that really support it
This is tricky because as you can see from the question, the feature is a very tempting extension to the language. Many people try to use it but their toolset does not allow that. All options as a resolution have been given in my first response. Please accept