XSD validation with Javascript using xml.js and Chrome Apps

You can validate offline with Javascript XML files against XSD schemas using xml.js, an Emscripten version of libxml.

In this example i will use a chrome packaged app to access filesystem offline and to increase the portability (Chrome app example hacked from here).

This post is going to be just a note on the example i realized. I return all the explanations to the code, it’s a little bit messy, but sorry it’s just a proof of concept.

Feel free to modify.