1

Imagine a xml file which refers to a schema using noNamespaceSchemaLocation.

I'd like to resolve the value defined in noNamespaceSchemaLocation dynamically using some kind of resolving technique (like ResourceResolver for resolving schema includes) during parsing (default values in the schema have to be considered)

Is there a way to do this?

4

1 回答 1

0

我猜当您调用 时Validator.setResourceResolver(),您提供的 LSResourceResolver 用于此目的(它在 JAXP 接口的 Saxon 实现中,但您需要运行测试以检查它是否也适用于 Xerces 实现)。

于 2011-03-02T23:20:36.297 回答