| hxt-8.5.4: A collection of tools for processing XML with Haskell. | Source code | Contents | Index
Text.XML.HXT.DOM.XmlNode |
Portability | portable
Stability | stable
Maintainer | Uwe Schmidt (uwe@fh-wedel.de)
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
Documentation
class XmlNode a where | Source
Methods
isText :: a -> Bool | Source
isCharRef :: a -> Bool | Source
isEntityRef :: a -> Bool | Source
isCmt :: a -> Bool | Source
isCdata :: a -> Bool | Source
isPi :: a -> Bool | Source
isElem :: a -> Bool | Source
isRoot :: a -> Bool | Source
isDTD :: a -> Bool | Source
isAttr :: a -> Bool | Source
isError :: a -> Bool | Source
mkText :: String -> a | Source
mkCharRef :: Int -> a | Source
mkEntityRef :: String -> a | Source
mkCmt :: String -> a | Source
mkCdata :: String -> a | Source
mkPi :: QName -> XmlTrees -> a | Source
mkError :: Int -> String -> a | Source
getText :: a -> Maybe String | Source
getCharRef :: a -> Maybe Int | Source
getEntityRef :: a -> Maybe String | Source
getCmt :: a -> Maybe String | Source
getCdata :: a -> Maybe String | Source
getPiName :: a -> Maybe QName | Source
getPiContent :: a -> Maybe XmlTrees | Source
getElemName :: a -> Maybe QName | Source
getAttrl :: a -> Maybe XmlTrees | Source
getDTDPart :: a -> Maybe DTDElem | Source
getDTDAttrl :: a -> Maybe Attributes | Source
getAttrName :: a -> Maybe QName | Source
getErrorLevel :: a -> Maybe Int | Source
getErrorMsg :: a -> Maybe String | Source
getName :: a -> Maybe QName | Source
getQualifiedName :: a -> Maybe String | Source
getUniversalName :: a -> Maybe String | Source
getUniversalUri :: a -> Maybe String | Source
getLocalPart :: a -> Maybe String | Source
getNamePrefix :: a -> Maybe String | Source
getNamespaceUri :: a -> Maybe String | Source
changeText :: (String -> String) -> a -> a | Source
changeCmt :: (String -> String) -> a -> a | Source
changeName :: (QName -> QName) -> a -> a | Source
changeElemName :: (QName -> QName) -> a -> a | Source
changeAttrl :: (XmlTrees -> XmlTrees) -> a -> a | Source
changeAttrName :: (QName -> QName) -> a -> a | Source
changePiName :: (QName -> QName) -> a -> a | Source
changeDTDAttrl :: (Attributes -> Attributes) -> a -> a | Source
setText :: String -> a -> a | Source
setCmt :: String -> a -> a | Source
setName :: QName -> a -> a | Source
setElemName :: QName -> a -> a | Source
setElemAttrl :: XmlTrees -> a -> a | Source
setAttrName :: QName -> a -> a | Source
setPiName :: QName -> a -> a | Source
setDTDAttrl :: Attributes -> a -> a | Source
Instances
XmlNode XNode
XmlNode a => XmlNode (NTree a)
mkElementNode :: QName -> XmlTrees -> XNode | Source
mkAttrNode :: QName -> XNode | Source
mkDTDNode :: DTDElem -> Attributes -> XNode | Source
mkElement :: QName -> XmlTrees -> XmlTrees -> XmlTree | Source
mkRoot :: XmlTrees -> XmlTrees -> XmlTree | Source
mkAttr :: QName -> XmlTrees -> XmlTree | Source
mkDTDElem :: DTDElem -> Attributes -> XmlTrees -> XmlTree | Source
addAttr :: XmlTree -> XmlTrees -> XmlTrees | Source
mergeAttrl :: XmlTrees -> XmlTrees -> XmlTrees | Source
module Data.Tree.NTree.TypeDefs
Produced by Haddock version 2.4.2