问题描述
我想使用RELAX NG schemata验证XML文档,我想使用。
从谷歌搜索,似乎我可以使用和。不幸的是,在将两者都添加到我的类路径后,我无法让它工作。 SchemaFactory
只要它试图实例化一个工厂就抛出 IllegalArgumentException
- 我看着里面 SchemaFactory
,显然 SchemaFactoryFinder
返回null结果。
所以我想感谢这两个问题的答案:
- 如何使用Jing和这座桥来完成这项工作?
- 我应该尝试更好/不同的库集吗?
我需要这个库来使用Java 5和Java 6。 / p>
谢谢!
参见Stefan Bodewig在3月7日写的博客, 2008年题为:
...
要阅读Kohsuke Kawaguchi博客上的评论,你必须使用因为它们现在都不见了:
I would like to validate XML documents using RELAX NG schemata, and I would like to use the JAXP validation API.
From Googling around, it appeared that I could use Jing and the ISO RELAX JARV to JAXP Bridge. Unfortunately, after adding both to my classpath, I can't get it to work. SchemaFactory
is just throwing an IllegalArgumentException
as soon as it tries to instantiate a factory — I looked inside SchemaFactory
, apparently SchemaFactoryFinder
is returning a null result.
So I'd appreciate answers to either question:
- How can I make this work with Jing and this bridge?
- Is there a better/different set of libraries I should try?
I need this to work with Java 5 and Java 6.
Thanks!
See Stefan Bodewig's Weblog written on March 7, 2008 titled RELAX NG Validation in XMLUnit:
...
To read the comments on Kohsuke Kawaguchi's blog, you have to use archive.org because somehow they are all gone now:
这篇关于如何使用RELAX NG模式和JAXP验证XML文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!