Text.XML.Light.Types

xml-1.3.14: A simple XML library.

Copyright | (c) Galois, Inc. 2007
License | BSD3
Maintainer | Iavor S. Diatchki <diatchki@galois.com>
Stability | provisional
Portability | Basic XML types.
Safe Haskell | Safe
Language | Haskell98

Text.XML.Light.Types

Description

Synopsis

- type Line = Integer
- data Content
  - = Elem Element
  - | Text CData
  - | CRef String
- data Element = Element {
  - elName :: QName
  - elAttribs :: [Attr]
  - elContent :: [Content]
  - elLine :: Maybe Line
  }
- data Attr = Attr {
  - attrKey :: QName
  - attrVal :: String
  }
- data CData = CData {
  - cdVerbatim :: CDataKind
  - cdData :: String
  - cdLine :: Maybe Line
  }
- data CDataKind
  - = CDataText
  - | CDataVerbatim
  - | CDataRaw
- data QName = QName {
  - qName :: String
  - qURI :: Maybe String
  - qPrefix :: Maybe String
  }
- blank_name :: QName
- blank_cdata :: CData
- blank_element :: Element

# Documentation

type Line = Integer

A line is an Integer

data Content

XML content

Constructors

Elem Element |
Text CData |
CRef String |

Instances

Data Content |
Show Content |
Node Content |
Node [Content] |
Node ([Attr], [Content]) |
Node ([Attr], Content) |
Node (Attr, Content) |

data Element

XML elements

Constructors

Element |
Fields elName :: QName elAttribs :: [Attr] elContent :: [Content] elLine :: Maybe Line

Instances

Data Element |
Show Element |
Node Element |
Node [Element] |
Node ([Attr], [Element]) |
Node ([Attr], Element) |
Node (Attr, Element) |

data Attr

XML attributes

Constructors

Attr |
Fields attrKey :: QName attrVal :: String

Instances

Eq Attr |
Data Attr |
Ord Attr |
Show Attr |
Node Attr |
Node [Attr] |
Node ([Attr], [CData]) |
Node ([Attr], [Element]) |
Node ([Attr], [Content]) |
Node ([Attr], String) |
Node ([Attr], CData) |
Node ([Attr], Element) |
Node ([Attr], Content) |
Node (Attr, String) |
Node (Attr, CData) |
Node (Attr, Element) |
Node (Attr, Content) |

data CData

XML CData

Constructors

CData |
Fields cdVerbatim :: CDataKind cdData :: String cdLine :: Maybe Line

Instances

Data CData |
Show CData |
Node CData |
Node [CData] |
Node ([Attr], [CData]) |
Node ([Attr], CData) |
Node (Attr, CData) |

data CDataKind

Constructors

CDataText | Ordinary character data; pretty printer escapes &, < etc.
CDataVerbatim | Unescaped character data; pretty printer embeds it in <![CDATA[..
CDataRaw | As-is character data; pretty printer passes it along without any escaping or CDATA wrap-up.

Instances

Eq CDataKind |
Data CDataKind |
Show CDataKind |

data QName

XML qualified names

Constructors

QName |
Fields qName :: String qURI :: Maybe String qPrefix :: Maybe String

Instances

Eq QName |
Data QName |
Ord QName |
Show QName |

blank_name :: QName

Blank names

blank_cdata :: CData

Blank cdata

blank_element :: Element

Blank elements