HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulehxt-9.3.1.22Haskell2010

Text.XML.HXT.DOM.TypeDefs

The core data types of the HXT DOM.

  • 10 types
  • 7 values
  • Packagehxt-9.3.1.22
  • Exports17
  • LanguageHaskell2010
  • LicenceMIT
  • SourceTypeDefs.hs
datadata DTDElem
#

Represents a DTD element

Constructors

  • 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"

    kind: "#REQUIRED" | "#IMPLIED" | "DEFAULT"

  • 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

Instances8Enum, Eq, Ord, Read, Show, NFData, …
  • Enum DTDElemDefined in hxt-9.3.1.22 · Text.XML.HXT.DOM.TypeDefs
  • Eq DTDElemDefined in hxt-9.3.1.22 · Text.XML.HXT.DOM.TypeDefs
  • Ord DTDElemDefined in hxt-9.3.1.22 · Text.XML.HXT.DOM.TypeDefs
  • Read DTDElemDefined in hxt-9.3.1.22 · Text.XML.HXT.DOM.TypeDefs
  • Show DTDElemDefined in hxt-9.3.1.22 · Text.XML.HXT.DOM.TypeDefs
  • NFData DTDElemDefined in hxt-9.3.1.22 · Text.XML.HXT.DOM.TypeDefs
  • Binary DTDElemDefined in hxt-9.3.1.22 · Text.XML.HXT.DOM.TypeDefs
  • WNFData DTDElemDefined in hxt-9.3.1.22 · Text.XML.HXT.DOM.TypeDefs
datadata XNode
#

Represents elements

Constructors

  • 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

Instances6Eq, Show, NFData, Binary, WNFData, XmlNode
  • Eq XNodeDefined in hxt-9.3.1.22 · Text.XML.HXT.DOM.TypeDefs
  • Show XNodeDefined in hxt-9.3.1.22 · Text.XML.HXT.DOM.TypeDefs
  • NFData XNodeDefined in hxt-9.3.1.22 · Text.XML.HXT.DOM.TypeDefs
  • Binary XNodeDefined in hxt-9.3.1.22 · Text.XML.HXT.DOM.TypeDefs
  • WNFData XNodeDefined in hxt-9.3.1.22 · Text.XML.HXT.DOM.TypeDefs
  • XmlNode XNodeDefined in hxt-9.3.1.22 · Text.XML.HXT.DOM.XmlNode
typetype Blob = ByteString
#

Binary large object implemented as a lazy bytestring

valuec_ok :: Int
#

no error, everything is ok

valuec_warn :: Int
#

Error level for XError, type warning

valuec_err :: Int
#

Error level for XError, type error

valuec_fatal :: Int
#

Error level for XError, type fatal error

datadata XmlNodeSet
#

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

Constructors

Instances2Eq, Show
  • Eq XmlNodeSetDefined in hxt-9.3.1.22 · Text.XML.HXT.DOM.TypeDefs
  • Show XmlNodeSetDefined in hxt-9.3.1.22 · Text.XML.HXT.DOM.TypeDefs