| |||||||||||
| |||||||||||
Description | |||||||||||
This module provides functions for validating XML documents represented as XmlTree. Unlike other popular XML validation tools the validation functions return a list of errors instead of aborting after the first error was found. Note: The validation process has been split into validation and transformation! If validate did not report any errors, transform should be called, to change the document the way a validating parser is expected to do. | |||||||||||
Synopsis | |||||||||||
| |||||||||||
Documentation | |||||||||||
getDTDSubset :: XmlArrow | |||||||||||
validate :: XmlArrow | |||||||||||
Main validation filter. Check if the DTD and the document are valid.
| |||||||||||
validateDTD :: XmlArrow | |||||||||||
Check if the DTD is valid.
| |||||||||||
validateDoc :: XmlArrow | |||||||||||
Check if the document corresponds to the given DTD.
| |||||||||||
removeDoublicateDefs :: XmlArrow | |||||||||||
Removes doublicate declarations from the DTD which first declaration is binding. This is the case for ATTLIST and ENTITY declarations.
| |||||||||||
transform :: XmlArrow | |||||||||||
filter for transforming a document with respect to the given DTD. Validating parsers are expected to normalize attribute values and add default values. This function should be called after a successful validation.
| |||||||||||
Produced by Haddock version 2.5.0 |