如何在使用 maven 从 XSD 1.1 生成源时使用 Xerces [英] How to use Xerces while generating sources from XSD 1.1 with maven

查看:44
本文介绍了如何在使用 maven 从 XSD 1.1 生成源时使用 Xerces的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有断言标签的 XSD 文件.我读到 Xerces 支持带有这些标签的 XML Schema 1.1 草案.

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

如何在我的 Maven 构建中使用实际的 Xerces 版本,而不是标准的 Java 实现.

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

推荐答案

使用 Xerces 版本的旧方法是添加这些参数.不知道还能不能用.

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 1.1 生成源时使用 Xerces的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆