I am already using HXT for transforming XML. Now I want to validate the input and output against a XSD-file.
HXT only seem to include RELAXNG and DTD validators.
I don't really care to use something else for just validating.
I am already using HXT for transforming XML. Now I want to validate the input and output against a XSD-file.
HXT only seem to include RELAXNG and DTD validators.
I don't really care to use something else for just validating.
The closest I can think is HaXml and some elbow grease: https://hackage.haskell.org/package/HaXml-1.25.3
In particular, you have tools to parse XSD and to validate DTD. However I don't there's an "out of the box" way to validate XSD -- it could be possible to smash the info you want into their DTD format, or you could replicate their validation logic against the parsed XSD.
At least that's a start...
© 2022 - 2024 — McMap. All rights reserved.