在javascript中是否有任何跨平台的方法来验证xml对xsd? [英] Is there ANY cross-platform way of validating xml against an xsd in javascript?

查看:142
本文介绍了在javascript中是否有任何跨平台的方法来验证xml对xsd?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所知,这样做的唯一方法是使用Microsoft DOM对象,但据我所知,如果您在Linux上浏览Firefox时,这并不是普遍可用的。 。

As far as I can tell, the only way of doing it is to use the Microsoft DOM object, but as far as I'm aware this isn't universally available, if you're browsing with Firefox on Linux for example.

出于安全和最小化网络流量的原因,我无法将xml传递给外部工具进行验证(我希望尽可能多)。无论使用什么浏览器/平台,有没有办法让javascript执行此操作?

For reasons of security and minimizing network traffic I can't pass the xml to an external tool to validate (much as I wish I could). Is there any way of getting javascript to do this regardless of the browser/platform being used?

推荐答案

好的,经过相当数量的研究似乎是这个问题的简单答案是不,除非我在javascript中编写自己的验证器。

Ok, after a fair amount of research, it seems the simple answer to this one is 'no', unless I write my own validator in javascript.

这篇关于在javascript中是否有任何跨平台的方法来验证xml对xsd?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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