Hoogle Search
Within LTS Haskell 24.64 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
module Text.XML.HXT.DTDValidation.
DocValidation 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.
validateDoc :: XmlTree -> XmlArrowhxt Text.XML.HXT.DTDValidation.DocValidation 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
validateIds :: XmlTree -> XmlArrowhxt Text.XML.HXT.DTDValidation.IdValidation Perform the validation of the IDIDREFIDREFS constraints.
- 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
isIdAttrType :: ArrowDTD a => a XmlTree XmlTreehxt Text.XML.HXT.DTDValidation.TypeDefs No documentation available.
isIdRefAttrType :: ArrowDTD a => a XmlTree XmlTreehxt Text.XML.HXT.DTDValidation.TypeDefs No documentation available.
module Text.XML.HXT.DTDValidation.
Validation 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.
-
hxt Text.XML.HXT.DTDValidation.Validation 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.
-
hxt Text.XML.HXT.DTDValidation.Validation 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.
-
hxt Text.XML.HXT.DTDValidation.Validation 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.
pubidLiteral :: XParser s Stringhxt Text.XML.HXT.Parser.XmlTokenParser No documentation available.