PL/SQL - XML 验证错误

发布于 2024-08-17 19:37:05 字数 298 浏览 5 评论 0原文

我正在根据架构验证 XML 文档。到目前为止,一切进展顺利,但生成的文档和模式之间存在一些显着差异(因此需要验证)。我注意到 Oracle 在遇到第一个错误后将停止验证。我希望能够编译错误列表并将它们带给模式的开发人员,但到目前为止,如果我解决当前的错误,我只能得到下一个错误 - 其中一些我不能我自己解决,但需要先与其他开发人员讨论。

有没有办法让 Oracle 打印所有验证错误?

更新

我正在使用 Oracle 10g,但有人告诉我 Oracle 11可以返回验证错误列表。

I am validating an XML document against a schema. So far, all is going well, but there are some significant differences between the generated document and the schema (hence the validation). I've noticed that Oracle will stop validating after the first error is encountered. I'd like to be able to compile a list of errors and take them to the developers of the schema, but so far it looks like I can only get the next error if I resolve the current one - some of them I can't resolve on my own, but need to discuss with the other developers first.

Is there a way to get Oracle to print all validation errors?

UPDATE

I was working in Oracle 10g, but I have been told that Oracle 11 can return a list of validation errors.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

聚集的泪 2024-08-24 19:37:05

大多数 XML 验证器在第一次失败后就会停止。我认为Oracle也是同样的方式。

Most XML validators stop after the first failure. I think Oracle's is the same way.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文