How to validate XML against XSD 1.1 in Java?

后端 未结 4 570
花落未央
花落未央 2020-12-01 14:55

What is the best way to validate XML files against XML Schema 1.1 in Java?

I took the code from this tutorial and changed the line where it looks up the factory to u

4条回答
  •  温柔的废话
    2020-12-01 15:08

    There is a generic XML validator that works with XML Schema v1.1, which uses xercesImpl-xsd11 2.12-beta-r1667115. The validator is available here as a Maven plugin, and here as an embeddable library.

提交回复
热议问题