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.
我能想到的最接近的是 HaXml 和一些肘部油脂:https ://hackage.haskell.org/package/HaXml-1.25.3
特别是,您拥有解析 XSD 和验证 DTD 的工具。但是,我没有“开箱即用”的方式来验证 XSD——它可以将你想要的信息粉碎成它们的 DTD 格式,或者你可以针对解析的 XSD 复制它们的验证逻辑。
至少这是一个开始……