hxt-filter-8.4.2: A collection of tools for processing XML with Haskell (Filter variant).

Text.XML.HXT.Validator.DTDValidation

Description

This module provides functions for validating the DTD of XML documents represented as XmlTree.

Synopsis

Documentation

removeDoublicateDefs :: XmlFilterSource

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.

validateDTD :: XmlFilterSource

Validate a DTD.

  • returns : a functions which takes the DTD subset of the XmlTree, checks if the DTD is valid and returns a list of errors