开发者

how to use javascript to validate xml against schema in firefox?

开发者 https://www.devze.com 2022-12-13 12:26 出处:网络
I can do this in IE using ActiveXObject, however mozilla doesn\'t 开发者_StackOverflow社区support ActiveXObject. Is there any way I can use JS to validate an XML against an XSD schema in firefox?No, n

I can do this in IE using ActiveXObject, however mozilla doesn't 开发者_StackOverflow社区support ActiveXObject. Is there any way I can use JS to validate an XML against an XSD schema in firefox?


No, no other browser has a Schema validator built-in. You would have to write your own in JavaScript, if you really wanted to run a validator in the browser. (It's a pretty unusual thing to want to do; usually this kind of thing is strictly server-side.)

0

精彩评论

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