Is there any software (application/library) which validates *.xml against XSD 1.1 (assert etc.) through script?

Ideally, I 'm searching for an open source solution or a product that doesn't need a paid license.

Thank you in advance!

3 Answers 3


There are three implementations of XSD 1.1 that I'm aware of:

The only one that's open source is Xerces.

  • 1
    Links would make this a better answer.
    – Eric S
    Jan 24, 2019 at 15:18
  • Feel free to improve my answers if you wish. Jan 25, 2019 at 14:32
  • The point is that it is your answer. I don't know these programs and would have to look up the sites to get links. So would every other person reading your answer. You know these programs and could easily add the links making the answer so much more convenient for everyone else.
    – Eric S
    Jan 25, 2019 at 15:41

Maybe xmlschema written in Python can help you out.


The xmlschema library is an implementation of XML Schema for Python (supports Python 3.5+).

This library arises from the needs of a solid Python layer for processing XML Schema based files for MaX (Materials design at the Exascale) European project. A significant problem is the encoding and the decoding of the XML data files produced by different simulation software. Another important requirement is the XML data validation, in order to put the produced data under control. The lack of a suitable alternative for Python in the schema-based decoding of XML data has led to build this library. Obviously this library can be useful for other cases related to XML Schema based processing, not only for the original scope.

The full xmlschema documentation is available on “Read the Docs”.


XMLStar looks like a good candidate for your request.

It seems to be able to validate via command line so you should be able to script it. It validates XSD if you define the xsd file. I am not sure about the license but it's free and the source code is available. Also it's available for

  • Windows
  • Linux
  • Solaris
  • 1
    XMLStarlet is a command line interface to the libxml2/libxslt engines, which haven't been upgraded for many years and don't support XSD 1.1 Jan 24, 2019 at 14:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.