是否有针对模式验证 XML 的 Perl 模块? [英] Is there a Perl module that validates an XML against a schema?

查看:48
本文介绍了是否有针对模式验证 XML 的 Perl 模块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要根据模式验证 XML.

I need to validate an XML agaist a schema.

我试过 XML::SAX::ParserFactory;XML::Validator::Schema 和相关模块,但看起来它们是有限的.
受限于它无法识别架构元素,例如 xsd:unique、xsd:group、xsd:keyref、xsd:union 和 xsd:key.

I tried XML::SAX::ParserFactory; XML::Validator::Schema and related modules but looks like they are limited.
Limited in the sense that it didn't recognize schema elements such as xsd:unique, xsd:group, xsd:keyref, xsd:union and xsd:key.

这些 xsd:unique 等是新增的吗?

Are these xsd:unique, etc. new additions?

如果您能指点我一些最新的和完成任务的 Perl 模块,不胜感激.

Appreciate if you can point me to some Perl modules which are upto date and upto the task.

提前致谢.

推荐答案

您是否尝试过使用 xmllint 对其进行验证?

Have you tried validating it with xmllint?

这篇关于是否有针对模式验证 XML 的 Perl 模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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