I need to know, if there is a solution which works in all major browsers for validating an xml against an xsd. I don't have the time for creating the actual validation functionality myself. It's for a project which needs to be done in 2 weeks as an exam for my apprenticeship.
Doing an xml validator as a jQuery login would be nice. So i got 2 Questions.
Is there a pre-made xml validation plugin/functionality in JS or jQuery like PHP's http://php.net/manual/de/domdocument.schemavalidate.php ? No ActiveX, since ActiveX is just supported by IE (afaik). And it is unhandy, if i remember correctly, the user always has to agree with it.
I always just found, selfmade validation of XML (no schemas) or stuff made with ActiveX. So, if there is no xml validation plugin/functionality to which i just can pass a xml and a xsd, i would like to get a quick introduction on how i would do it myself, so i can imagen it better. Probably it's quick a lot of work for making my own xml validation against xsd, right?
Thanks
I would suggest to perform an Ajax request, validate on the server, and return the response to JS.
I know that you prefer a jQuery solution, but there is something that it was developed in JS, and performs just the way you want.
http://syssgx.github.io/xml.js/
This link gives 3 ways of interaction:
The best answer I found so far was Is there ANY cross-platform way of validating xml against an xsd in javascript?
But that's not very satisfying and nearly two years old - ages for the fast developmet that's going on on the browser side
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With