Copyright | Copyright (C) 2008-2010 Uwe Schmidt |
---|---|
License | MIT |
Maintainer | Uwe Schmidt (uwe@fh-wedel.de) |
Stability | stable |
Portability | portable |
Safe Haskell | None |
Language | Haskell98 |
The core data types of the HXT DOM.
Synopsis
- module Data.AssocList
- type ChildNodes = [(Int, XmlNodeSet)]
- data XmlNodeSet = XNS {
- thisNode :: Bool
- attrNodes :: [QName]
- childNodes :: ChildNodes
- type Attributes = AssocList String String
- type Blob = ByteString
- data DTDElem
- data XNode
- type XmlNavTrees = [NTZipper XNode]
- type XmlNavTree = NTZipper XNode
- type XmlTrees = NTrees XNode
- type XmlTree = NTree XNode
- rwnfAttributes :: Attributes -> ()
- blobToString :: Blob -> String
- stringToBlob :: String -> Blob
- c_ok :: Int
- c_warn :: Int
- c_err :: Int
- c_fatal :: Int
- module Text.XML.HXT.DOM.QualifiedName
Documentation
module Data.AssocList
type ChildNodes = [(Int, XmlNodeSet)] Source #
data XmlNodeSet Source #
data type for representing a set of nodes as a tree structure
this structure is e.g. used to repesent the result of an XPath query such that the selected nodes can be processed or selected later in processing a document tree
XNS | |
|
Instances
Eq XmlNodeSet Source # | |
Defined in Text.XML.HXT.DOM.TypeDefs (==) :: XmlNodeSet -> XmlNodeSet -> Bool # (/=) :: XmlNodeSet -> XmlNodeSet -> Bool # | |
Show XmlNodeSet Source # | |
Defined in Text.XML.HXT.DOM.TypeDefs showsPrec :: Int -> XmlNodeSet -> ShowS # show :: XmlNodeSet -> String # showList :: [XmlNodeSet] -> ShowS # |
type Attributes = AssocList String String Source #
Attribute list
used for storing option lists and features of DTD parts
type Blob = ByteString Source #
Binary large object implemented as a lazy bytestring
Represents a DTD element
DOCTYPE | attr: name, system, public, XDTD elems as children |
ELEMENT | attr: name, kind name: element name kind: "EMPTY" | "ANY" | "#PCDATA" | children | mixed |
CONTENT | element content attr: kind, modifier modifier: "" | "?" | "*" | "+" kind: seq | choice |
ATTLIST | attributes: name - name of element value - name of attribute type: "CDATA" | "ID" | "IDREF" | "IDREFS" | "ENTITY" | "ENTITIES" | "NMTOKEN" | "NMTOKENS" |"NOTATION" | "ENUMTYPE" |
ENTITY | for entity declarations |
PENTITY | for parameter entity declarations |
NOTATION | for notations |
CONDSECT | for INCLUDEs, IGNOREs and peRefs: attr: type type = INCLUDE, IGNORE or %...; |
NAME | attr: name for lists of names in notation types or nmtokens in enumeration types |
PEREF | for Parameter Entity References in DTDs |
Instances
Represents elements
XText String | ordinary text (leaf) |
XBlob Blob | text represented more space efficient as bytestring (leaf) |
XCharRef Int | character reference (leaf) |
XEntityRef String | entity reference (leaf) |
XCmt String | comment (leaf) |
XCdata String | CDATA section (leaf) |
XPi QName XmlTrees | Processing Instr with qualified name (leaf) with list of attributes. If tag name is xml, attributes are "version", "encoding", "standalone", else attribute list is empty, content is a text child node |
XTag QName XmlTrees | tag with qualified name and list of attributes (inner node or leaf) |
XDTD DTDElem Attributes | DTD element with assoc list for dtd element features |
XAttr QName | attribute with qualified name, the attribute value is stored in children |
XError Int String | error message with level and text |
Instances
type XmlNavTrees = [NTZipper XNode] Source #
List of navigatable rose trees with XML nodes
type XmlNavTree = NTZipper XNode Source #
Navigatable rose tree with XML nodes
rwnfAttributes :: Attributes -> () Source #
Evaluate an assoc list of strings
blobToString :: Blob -> String Source #
stringToBlob :: String -> Blob Source #