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.
XMLJava

Avatar of undefined
Last Comment
Gertone (Geert Bormans)

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Gertone (Geert Bormans)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Guy Hengel [angelIII / a3]

I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
Gertone (Geert Bormans)

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
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes