| hxt-8.5.4: A collection of tools for processing XML with Haskell. | Source code | Contents | Index

Text.XML.HXT.RelaxNG.Validation

Portability | portable
Stability | stable
Maintainer | Uwe Schmidt (uwe@fh-wedel.de)

Description
Validation of a XML document with respect to a valid Relax NG schema in simple form. Copied and modified from "An algorithm for RELAX NG validation" by James Clark (http://www.thaiopensource.com/relaxng/derivative.html).
Synopsis

validateWithRelaxAndHandleErrors :: IOSArrow XmlTree XmlTree -> IOSArrow XmlTree XmlTree
validateDocWithRelax :: IOSArrow XmlTree XmlTree -> Attributes -> String -> IOSArrow XmlTree XmlTree
validateRelax :: XmlTree -> IOSArrow XmlTree XmlTree
validateXMLDoc :: Attributes -> String -> IOSArrow XmlTree XmlTree
readForRelax :: Attributes -> String -> IOSArrow b XmlTree
normalizeForRelaxValidation :: ArrowXml a => a XmlTree XmlTree
contains :: NameClass -> QName -> Bool

Documentation

validateWithRelaxAndHandleErrors :: IOSArrow XmlTree XmlTree -> IOSArrow XmlTree XmlTree | Source

validateDocWithRelax :: IOSArrow XmlTree XmlTree -> Attributes -> String -> IOSArrow XmlTree XmlTree | Source

Validates a xml document with respect to a Relax NG schema

- 1.parameter : the arrow for computing the Relax NG schema
- 2.parameter : list of options for reading and validating
- 3.parameter : XML document URI
- arrow-input : ignored
- arrow-output : list of errors or `none`

validateRelax :: XmlTree -> IOSArrow XmlTree XmlTree | Source

Validates a xml document with respect to a Relax NG schema

- 1.parameter : XML document
- arrow-input : Relax NG schema
- arrow-output : list of errors or `none`

validateXMLDoc :: Attributes -> String -> IOSArrow XmlTree XmlTree | Source

readForRelax :: Attributes -> String -> IOSArrow b XmlTree | Source

normalizeForRelaxValidation :: ArrowXml a => a XmlTree XmlTree | Source

normalize a document for validation with Relax NG: remove all namespace declaration attributes, remove all processing instructions and merge all sequences of text nodes into a single text node

contains :: NameClass -> QName -> Bool | Source

tests whether a `NameClass` contains a particular `QName`
Produced by Haddock version 2.4.2