开发者

XSD validation functionality from node.js?

I am building a service which needs to validate XML files adhere to a given schema. In perusing the list of node modules at https://github.com/joyent/node/wiki/modules I see several XML parsing solutions but none of them, at first glance, appear to support XSD.

Are there other 开发者_运维知识库solutions out there I missed? Alternatively I am considering implementing a node proxy to an external library's functionality. The following question page has several good suggestions (Xerces and Xmllint being interesting) along these lines. Would something else be preferable?


I ended up writing XML validation through DTD's instead by calling the command line xmllint program. I wasn't confident about the maturity of the XSD validation libraries I looked at as they seemed to be incomplete, for the most part.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜