0

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!

1

There are three implementations of XSD 1.1 that I'm aware of: Altova, Saxon, and Xerces. The only one that's open source is Xerces.

| improve this answer | |
  • Links would make this a better answer. – Eric S Jan 24 '19 at 15:18
  • Feel free to improve my answers if you wish. – Michael Kay Jan 25 '19 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 '19 at 15:41
0

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
| improve this answer | |
  • 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 – Michael Kay Jan 24 '19 at 14:47
0

Maybe xmlschema written in Python can help you out.

https://pypi.org/project/xmlschema/

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”.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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