79388944

Date: 2025-01-26 17:12:46
Score: 6 🚩
Natty:
Report link

Thanks for the quick answer @Martin Honnen . I tried using Xerces for validation. Tried the versions 2.11.0 , 2.12.0 , 2.12.2. All of them throws the same error below. I found few threads related to the same error, but couldn't find the right solution. Looks like issue with the schema NS URI. Appreciate if you can throw some light. Thanks in advance.

Error: "java.lang.IllegalArgumentException: No SchemaFactory that implements the schema language specified by: http://www.w3.org/XML/XMLSchema/v1.1 could be loaded".

Other related threads: https://issues.apache.org/jira/browse/XERCESJ-1703

Example to validate a xml-File against an XSD v1.1 Schema in Java 1.8

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (3): Thanks in advance
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @Martin
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Java Dev