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

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

Text.XML.HXT.DOM.XmlNode

Description

Interface for XmlArrow to basic data types NTree and XmlTree

If this module must be used in code working with arrows, it should be imported qualified e.g. as XN, to prevent name clashes.

For code working on the "node and tree level" this module is the interface for writing code without using the constructor functions of XNode and NTree directly

Synopsis

Documentation

class XmlNode a whereSource

Methods

isText :: a -> BoolSource

isBlob :: a -> BoolSource

isCharRef :: a -> BoolSource

isEntityRef :: a -> BoolSource

isCmt :: a -> BoolSource

isCdata :: a -> BoolSource

isPi :: a -> BoolSource

isElem :: a -> BoolSource

isRoot :: a -> BoolSource

isDTD :: a -> BoolSource

isAttr :: a -> BoolSource

isError :: a -> BoolSource

mkText :: String -> aSource

mkBlob :: Blob -> aSource

mkCharRef :: Int -> aSource

mkEntityRef :: String -> aSource

mkCmt :: String -> aSource

mkCdata :: String -> aSource

mkPi :: QName -> XmlTrees -> aSource

mkError :: Int -> String -> aSource

getText :: a -> Maybe StringSource

getBlob :: a -> Maybe BlobSource

getCharRef :: a -> Maybe IntSource

getEntityRef :: a -> Maybe StringSource

getCmt :: a -> Maybe StringSource

getCdata :: a -> Maybe StringSource

getPiName :: a -> Maybe QNameSource

getPiContent :: a -> Maybe XmlTreesSource

getElemName :: a -> Maybe QNameSource

getAttrl :: a -> Maybe XmlTreesSource

getDTDPart :: a -> Maybe DTDElemSource

getDTDAttrl :: a -> Maybe AttributesSource

getAttrName :: a -> Maybe QNameSource

getErrorLevel :: a -> Maybe IntSource

getErrorMsg :: a -> Maybe StringSource

getName :: a -> Maybe QNameSource

getQualifiedName :: a -> Maybe StringSource

getUniversalName :: a -> Maybe StringSource

getUniversalUri :: a -> Maybe StringSource

getLocalPart :: a -> Maybe StringSource

getNamePrefix :: a -> Maybe StringSource

getNamespaceUri :: a -> Maybe StringSource

changeText :: (String -> String) -> a -> aSource

changeBlob :: (Blob -> Blob) -> a -> aSource

changeCmt :: (String -> String) -> a -> aSource

changeName :: (QName -> QName) -> a -> aSource

changeElemName :: (QName -> QName) -> a -> aSource

changeAttrl :: (XmlTrees -> XmlTrees) -> a -> aSource

changeAttrName :: (QName -> QName) -> a -> aSource

changePiName :: (QName -> QName) -> a -> aSource

changeDTDAttrl :: (Attributes -> Attributes) -> a -> aSource

setText :: String -> a -> aSource

setBlob :: Blob -> a -> aSource

setCmt :: String -> a -> aSource

setName :: QName -> a -> aSource

setElemName :: QName -> a -> aSource

setElemAttrl :: XmlTrees -> a -> aSource

setAttrName :: QName -> a -> aSource

setPiName :: QName -> a -> aSource

setDTDAttrl :: Attributes -> a -> aSource

Instances

XmlNode XNode 
(XmlNode a, Tree t) => XmlNode (t a) 

mkElement' :: QName -> XmlTrees -> XmlTrees -> XmlTreeSource

weak normalform versions of constructors