hxt-9.3.1.22: A collection of tools for processing XML with Haskell.
CopyrightCopyright (C) 2008 Uwe Schmidt
LicenseMIT
MaintainerUwe Schmidt (uwe@fh-wedel.de)
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Text.XML.HXT.DTDValidation.DocValidation

Description

This module provides functions for validating XML Documents represented as XmlTree.

Unlike other popular XML validation tools the validation process returns a list of errors instead of aborting after the first error was found.

Before the document is validated, a lookup-table is build on the basis of the DTD which maps element names to their validation functions. After this initialization phase the whole document is traversed in preorder and every element is validated by the XmlFilter from the lookup-table.

Synopsis

Documentation

validateDoc :: XmlTree -> XmlArrow Source #

Validate a document.

  • 1.parameter dtdPart : the DTD subset (Node DOCTYPE) of the XmlTree
  • 2.parameter doc : the document subset of the XmlTree
  • returns : a list of errors