XML validation against XSD 1.1 with Xerces in Java

前端 未结 3 1799
Happy的楠姐
Happy的楠姐 2021-01-04 23:10

I have installed Xerces through Maven:


    
        junit
        jun         


        
3条回答
  •  猫巷女王i
    2021-01-04 23:42

    I will add another answer, because for me this dependency did not work (same error as described by OP):

    
      xerces
      xercesImpl
      2.11.0
    
    

    I quess 2.11.0 should be newer than 2.11.0.beta, but it seems like xsd1.1 is not supported in that version !

    Instead only the following dependency lead to a working XSD1.1 validation for me:

    
        org.opengis.cite.xerces
        xercesImpl-xsd11
        2.12-beta-r1667115
    
    

    ( Found in this SO thread: How to validate XML against XSD 1.1 in Java? )

提交回复
热议问题