hxt-9.0.1: A collection of tools for processing XML with Haskell.

Portabilityportable
Stabilitystable
MaintainerUwe Schmidt (uwe@fh-wedel.de)

Text.XML.HXT.Arrow.ParserInterface

Description

interface to the HXT XML and DTD parsers

Synopsis

Documentation

substHtmlEntityRefs :: ArrowList a => a XmlTree XmlTreeSource

substitution of all predefined XHTMT entities for none ASCII chars

This arrow recurses through a whole XML tree and substitutes all entity refs within text nodes and attribute values by a text node containing of a single char corresponding to this entity.

Unknown entity refs remain unchanged

substXmlEntityRefs :: ArrowList a => a XmlTree XmlTreeSource

substitution of the five predefined XMT entities, works like substHtmlEntityRefs

substEntityRefs :: ArrowList a => [(String, Int)] -> a XmlTree XmlTreeSource

the entity substitution arrow called from substXmlEntityRefs and substHtmlEntityRefs