-->

How to use Xerces while generating sources from XS

2019-08-20 02:26发布

问题:

I have a XSD file with assertion tags. I have read that Xerces supports a XML Schema 1.1 draft with these tags.

How can I use an actual Xerces version, instead of the standard Java implementation, in my maven build.

回答1:

An old way to use the Xerces version was adding those parameters. I do not know if it could still work.

-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl
-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
-Djavax.xml.parsers.SAXParser=org.apache.xerces.jaxp.SAXParserImpl


标签: maven xsd xerces