Is there a java library that supports XSD 1.1. I have tried finding it for 2 days. The only implementation I found was Xerces2 Java 2.11.0 (XML Schema 1.1) (Beta) which works along with JAXP 1.4. This beta version did not work well either. Basic things like 'assert test' that were introduced in XSD 1.1 were failing. Please help me find a solid java library that supports XSD 1.1 for validation (if any). Thanks in Advance.
Java library that supports XSD 1.1
3.1k views Asked by Adithya Puram At
3
There are 3 answers
0
Beth Lang
On
I've been using xerces-j and it has been working well for even very complicated XSDs with many asserts and assertions. It looks like the problems you were running into have been worked out now.
0
Alex
On
Till now things worked well for me by using the following xerces version:
<dependency>
<groupId>org.opengis.cite.xerces</groupId>
<artifactId>xercesImpl-xsd11</artifactId>
<version>2.12-beta-r1667115</version>
</dependency>
I as well wanted to try the saxon-implementation, but than I figured out that saxon XSD1.1 validation only is available in the commercial saxon product, and you need to buy a licence to make use of it.
Related Questions in XSD
- Delphi can not compile the unit create by its "XML Data Binding Wizard"
- In XSD do you have to import the standard schema in order to use it?
- XML default namespace vs prefix namespace declarations
- write xml using xsd using xmlschema_from_json giving error: Reason: unable to select an element for decoding data, provide a valid 'path' argument
- eclipse xml validation, https certificate SunCertPathBuilderException
- Cannot Find The Declaration Of Element 'Document'., Line '1', Column '11'
- ORA-31043: Element '' not globally defined in schema ''
- xmltype.schemaValidate changes timestamp values resulting in regex validation failure
- Jaxb inheritance with multiple XSD files fails when 1 XSD file doesn't contain a tag
- How to move namespace declaration from inner element to upper element?
- how to iterate and print logger xml object response data value we don't have java class for that object it's XSD and there is no toString()
- Re-Serialize a C# Dataset through an XSD to a XML file
- Dataweave script or function to transform unordered JSON payload to ordered XML payload?
- Imported XSD elements are always "invalid"
- XML validation Cannot Resolve The Name
Related Questions in XERCES
- XMLStreamReader.getLocation() returns unexpected character offset
- SAXParseException with Camel 4
- Replace xerces xml
- How to build Android with Xerces
- Java 17 migration, JEP-403 and Xerces - properties ACCESS_EXTERNAL_DTD and ACCESS_EXTERNAL_SCHEMA not supported
- cmake not generating Xerces_autoconf_config.hpp header for Xerces 3.2.5 build on windows
- XSD Schema validation throws SAXParseException in java application using Xerces fails when there are external xsd's included in the Parent
- Xercesimpl 2.11.0 shows missing in Eclipse Build path though its present in Repository
- JAXP validation returns non-mandatory fields
- "InvalidClassException" for "XMLGregorianCalendarImpl" xercesImpl lib under esapi 2.5.2.0
- Linking erros xerces-c on GNAT
- Xml Reader parsing character outside BMP to surrogate pairs which results in invalid xml
- xercesc::DOMLSParserImpl::doctypeDecl receives wrong input from xercesc for internal and external entity
- RegEx in XML Schema .xsd
- XSD error: a-props-correct.2: Invalid value constraint value '0.00' in attribute
Related Questions in XSD-VALIDATION
- How to validate XML using SCH (schematron) and XSD in Python?
- Re-Serialize a C# Dataset through an XSD to a XML file
- Howto detect violation of xsd:unique constraint via XmlReader ValidationType.Schema
- Imported XSD elements are always "invalid"
- Invalid XML element name while it's exactly one that is expected
- How to make the XML pass the XSD validation when using the default namespaces not explicitly defined in XML but present in XSD
- Invalid schema or missing namespace - XML validation via notepad++
- XSD give a choice between two different sequences
- XSD with enumeration giving
- XML validation with XSD loaded as File vs InputStream
- Decimal validation against XSD
- Why does the Microsoft Office Custom UI XSD schema not compile using xmllint?
- How to add a custom attribute to a XSD-1.1 validated XML Element
- Restrict to specific dates in any year
- Xsd with Enumeration - Getting error while puting enumeration type
Related Questions in XSD-1.1
- Azure SQL XML Datatype XSD validation
- XSD complex type generate java class without namespace
- XSD with enumeration giving
- Error validating XML with XSD version 1.1 with Xerces
- How to add a custom attribute to a XSD-1.1 validated XML Element
- XSD Schema validation throws SAXParseException in java application using Xerces fails when there are external xsd's included in the Parent
- Unable to use Assert element in XSD
- XSD problem with complexType set abstract="true"
- Namespace resolving for an unprefixed text value of an XML element of type xs:QName (XSD 1.1)
- <xs:openContent> causing error: 'invalid, misplaced, or occurs too often'
- Conditionally make the child element value length validation based on the parent attribute name in XSD
- Defining Attributes as Mandatory in the XSD
- is there any way I can have two complex types in one element schema ? I'm using 1.0 V
- XML Validation against XSD 1.1 gives error with XERCES library
- Why does the official XMLSchema.xsd fail to parse?
Related Questions in XERCES2-J
- Java 17 migration, JEP-403 and Xerces - properties ACCESS_EXTERNAL_DTD and ACCESS_EXTERNAL_SCHEMA not supported
- XML Validation against XSD 1.1 gives error with XERCES library
- Implementing custom XSD facet with Xerces?
- How to configure Xerces2-J to ingore xsi:schemaLocation hints?
- What do Public Identifier, System Identifier, and Base system identifier refer to in XML?
- Can XSModel object be obtained from a Schema Object?
- How to Validate a xml file with catalogs using Xerces2-j
- Xerces-J xsd:base64binary lexical validation question
- How to get XML element that violated a multiple field XSD assert
- Xerces v2.12.0 XML Schema 1.1 Validation
- Xerces2 XML parser and Xalan XSLT processor -- state and replacement?
- Jena failing while asking for missing Xerces's class while Xerces 2 is included
- Tomcat: how to set an XML attribute in context.xml as null?
- Preventing XXE (External XML Entity) Injection with Xerces 2
- XercesLib fail to parse invalid XMML
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Depending on your exact needs, Saxon might be able to help you.
Is it just validation that you need? validation of the schema or of the xml document directly?