Building an XML Schema from a Perl Hash?

2019-05-29 19:55发布

We're using one huge Perl Hash throughout the life of our application to store all details. We use data in this hash to write to the XML documents in the database. Is it possible to create some sort of XML schema from this hash to validate all the documents in the database against? Is there a Perl module that does something similar?

Thanks,

标签: xml perl hash xsd
1条回答
爱情/是我丢掉的垃圾
2楼-- · 2019-05-29 20:59

Kwalify and Rx are schema languages/validators for (Perl) data structures.

A related useful tool is dpath for accessing items in data structures with a syntax similar to XPath.

查看更多
登录 后发表回答