< xml.js >

JavaScript XML Schema Validation

XML file to validate:

Drop your xml file here

XML Schema:

Drop your schema file here

Output:

ready

Console:

xmllint info

Validate

XML file to validate:

Load XML data from files tab

XML Schema:

Load Schema data from files tab

Output:

ready

Console:

xmllint info

Validate

JavaScript client side XML Schema Validation

Based on the xmllint.js imlementation

Built by:

Panagiotis Tsalaportas @syssgx

Alon Zakai @kripken



How to

Include xmllint.js in the page.

//create an object
var Module = {
      xml: xmlData,
      schema: schemaData,
      arguments: ["--noout", "--schema", schemaFileName, xmlFileName]
};

//and call function
var xmllint = validateXML(Module);

The Module properties xmlData and schemaData are strings of the content.