Is there ANY cross-platform way of validating xml against an xsd in javascript?(是否有任何跨平台的方式来针对 javascript 中的 xsd 验证 xml?)
问题描述
据我所知,这样做的唯一方法是使用 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 中的 xsd 验证 xml?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:是否有任何跨平台的方式来针对 javascript 中的


- Quasar 2+Apollo:错误:找不到ID为默认的Apollo客户端。如果您在组件设置之外,请使用ProvideApolloClient() 2022-01-01
- 400或500级别的HTTP响应 2022-01-01
- Css:将嵌套元素定位在父元素边界之外一点 2022-09-07
- CSS媒体查询(最大高度)不起作用,但为什么? 2022-01-01
- 失败的 Canvas 360 jquery 插件 2022-01-01
- Fetch API 如何获取响应体? 2022-01-01
- Flexslider 箭头未正确显示 2022-01-01
- 如何使用 JSON 格式的 jQuery AJAX 从 .cfm 页面输出查 2022-01-01
- 使用RSelum从网站(报纸档案)中抓取多个网页 2022-09-06
- addEventListener 在 IE 11 中不起作用 2022-01-01