| ||||||||
| ||||||||
Description | ||||||||
Basic XmlTree functions | ||||||||
Synopsis | ||||||||
Documentation | ||||||||
isXCdataNode :: XNode -> Bool | ||||||||
isXCharRefNode :: XNode -> Bool | ||||||||
isXCmtNode :: XNode -> Bool | ||||||||
isXDTDNode :: XNode -> Bool | ||||||||
isXAttrNode :: XNode -> Bool | ||||||||
isXEntityRefNode :: XNode -> Bool | ||||||||
isXErrorNode :: XNode -> Bool | ||||||||
isXPiNode :: XNode -> Bool | ||||||||
isXTagNode :: XNode -> Bool | ||||||||
isXTextNode :: XNode -> Bool | ||||||||
isRootNode :: XNode -> Bool | ||||||||
isTagNode :: String -> XNode -> Bool | ||||||||
isOfTagNode :: (TagName -> Bool) -> XNode -> Bool | ||||||||
isAttrNode :: String -> XNode -> Bool | ||||||||
isOfAttrNode :: (AttrName -> Bool) -> XNode -> Bool | ||||||||
isTextNode :: String -> XNode -> Bool | ||||||||
isOfTextNode :: (String -> Bool) -> XNode -> Bool | ||||||||
isPiNode :: String -> XNode -> Bool | ||||||||
isOfPiNode :: (TagName -> Bool) -> XNode -> Bool | ||||||||
isDTDElemNode :: DTDElem -> XNode -> Bool | ||||||||
isErrorNode :: Int -> XNode -> Bool | ||||||||
textOfXNode :: XNode -> String | ||||||||
mkXTagTree :: String -> XmlTrees -> XmlTrees -> XmlTree | ||||||||
Create a tree with a tag node.
| ||||||||
mkQTagTree :: QName -> XmlTrees -> XmlTrees -> XmlTree | ||||||||
Version with qualified name of mkXTagTree | ||||||||
mkXNsTagTree :: String -> String -> XmlTrees -> XmlTrees -> XmlTree | ||||||||
create a tree with a namespace aware tag node.
see also: mkXTagTree | ||||||||
newRoot :: XmlTrees -> XmlTree | ||||||||
creates a new document tree with empty contents.
returns a single node tree with tag name "/" indicating a root and with empty list of children see also : emptyRoot | ||||||||
emptyRoot :: XmlTree | ||||||||
the empty document tree see also : newRoot | ||||||||
newDocument :: String -> XmlTree | ||||||||
create a new empty document with source name as parameter | ||||||||
newDocument' :: Attributes -> XmlTree | ||||||||
create a new empty document with a list of attributes for source location and options see also : newDocument | ||||||||
mkRootTree :: XmlTrees -> XmlTrees -> XmlTree | ||||||||
create a document root tree.
| ||||||||
mkXTextTree :: String -> XmlTree | ||||||||
create a leaf for a text element.
| ||||||||
mkXCharRefTree :: Int -> XmlTree | ||||||||
create a leaf for a char reference.
| ||||||||
mkXEntityRefTree :: String -> XmlTree | ||||||||
create a leaf for an entity reference.
| ||||||||
mkXCmtTree :: String -> XmlTree | ||||||||
create a leaf for a comment,
| ||||||||
mkXDTDTree :: DTDElem -> Attributes -> XmlTrees -> XmlTree | ||||||||
create a tree for a part of a DTD
| ||||||||
mkXAttrTree :: String -> XmlTrees -> XmlTree | ||||||||
create an attribute tree as part of a tag attribute list of tag nodes
| ||||||||
mkQAttrTree :: QName -> XmlTrees -> XmlTree | ||||||||
Qualified version of mkXAttrTree | ||||||||
mkXNsAttrTree :: String -> String -> XmlTrees -> XmlTree | ||||||||
create an attribute tree with a namespace
see also: mkXAttrTree, mkXNsTagTree | ||||||||
mkXPERefTree :: String -> XmlTree | ||||||||
create a parameter entity reference DTD part.
| ||||||||
mkXPiTree :: String -> String -> XmlTree | ||||||||
create a processing instruction tree.
| ||||||||
mkXmlDeclTree :: XmlTrees -> XmlTree | ||||||||
create xml declaration | ||||||||
mkXCdataTree :: String -> XmlTree | ||||||||
create a CDATA section tree.
| ||||||||
mkXErrorTree :: Int -> String -> XmlTrees -> XmlTree | ||||||||
create an error tree.
| ||||||||
maybeString2XText :: Maybe String -> XmlTrees | ||||||||
showXText :: XmlTrees -> String | ||||||||
showXCharRef :: XmlTrees -> String | ||||||||
showXEntityRef :: XmlTrees -> String | ||||||||
showXErrors :: XmlTrees -> String | ||||||||
xmlTreesToString :: XmlTrees -> String | ||||||||
old name for xshow (deprecated) | ||||||||
xmlTreesToText :: XmlSFilter | ||||||||
conversion of a filter result into a text node see also : xshow | ||||||||
xmlContentModelToString :: XmlTree -> String | ||||||||
nameOf :: XmlTree -> String | ||||||||
select the name of a node. For tags, attributes and pi's the name string is returned, else the empty string. | ||||||||
localPartOf :: XmlTree -> String | ||||||||
select the local part of a name of a node. For tags, attributes the name string is returned, for pi's the whole name, else the empty string. | ||||||||
namespaceOf :: XmlTree -> String | ||||||||
select the namespace URI of a tag or an attribute tree, else the empty string is returned see also : nameOf | ||||||||
prefixOf :: XmlTree -> String | ||||||||
select the namespace prefix of a tag or an attribute tree, else the empty string is returned see also : nameOf, localPartOf | ||||||||
universalNameOf :: XmlTree -> String | ||||||||
select the universal name (namespace uri ++ localPart) of a tag or an attribute tree, else the empty string is returned see also : nameOf, namespaceOf | ||||||||
attrlOfDTD :: XmlTree -> Attributes | ||||||||
select the attributes of a dtd tree | ||||||||
valueOfDTD :: String -> XmlTree -> String | ||||||||
select a special attribute of a DTD part | ||||||||
ofDTDequals :: String -> String -> XmlTree -> Bool | ||||||||
test an attribute of a DTD part | ||||||||
xcmt :: String -> XmlTrees | ||||||||
xerr :: String -> XmlTrees | ||||||||
xwarn :: String -> XmlTrees | ||||||||
xtext :: String -> XmlTrees | ||||||||
xtag :: String -> XmlTrees -> XmlTrees -> XmlTrees | ||||||||
xattr :: String -> String -> XmlTrees | ||||||||
toTreel :: XmlTrees -> AssocList String XmlTrees | ||||||||
toAttrl :: XmlTrees -> Attributes | ||||||||
fromTreel :: AssocList String XmlTrees -> XmlTrees | ||||||||
fromAttrl :: Attributes -> XmlTrees | ||||||||
Produced by Haddock version 2.1.0 |