hxt-7.5: A collection of tools for processing XML with Haskell.ContentsIndex
Text.XML.HXT.Validator.ValidationFilter
Description
This module provides functions for validating XML documents represented as XmlTree.
Synopsis
getDTDSubset :: XmlFilter
validate :: XmlFilter
validateDTD :: XmlFilter
validateDoc :: XmlFilter
removeDoublicateDefs :: XmlFilter
transform :: XmlFilter
Documentation
getDTDSubset :: XmlFilter
validate :: XmlFilter

Main validation filter. Check if the DTD and the document are valid.

  • returns : a function which expects a complete document as XmlTree input and returns a list of all errors found.
validateDTD :: XmlFilter

Check if the DTD is valid.

  • returns : a function which expects an XmlTree from the parser as input and returns a list of all errors found in the DTD.
validateDoc :: XmlFilter

Check if the document corresponds to the given DTD.

  • returns : a function which expects a complete document as XmlTree input and returns a list of all errors found in the content part.
removeDoublicateDefs :: XmlFilter

Removes doublicate declarations from the DTD which first declaration is binding. This is the case for ATTLIST and ENTITY declarations.

  • returns : A function that replaces the children of DOCTYPE nodes by a list where all multiple declarations are removed.
transform :: XmlFilter

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.

  • returns : a function which expects a complete XML document tree and returns the transformed XmlTree
Produced by Haddock version 2.1.0