How to check XML (via XSD file) in Haskell?

I already use HXT for XML conversion. Now I want to check the input and output on the XSD file.

HXT seems to include RELAXNG and DTD validators .

I do not need to use anything else for just checking.

+7
source share
1 answer

The closest thing I can think of is HaXml and some elbow grease: https://hackage.haskell.org/package/HaXml-1.25.3

In particular, you have tools for parsing XSD and validating DTDs. However, I don’t have a “ready-made option” for XSD verification - you could break the information you want into their DTD format, or you could replicate your verification logic to the analyzed XSD.

At least this is the beginning ...

0
source

All Articles