Text.XML.Light.Types

xml-1.3.7: A simple XML library.

Portability | Basic XML types.
Stability | provisional
Maintainer | Iavor S. Diatchki <diatchki@galois.com>
Safe Haskell | Safe-Inferred

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

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

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

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 |
Show CDataKind |

data QName

XML qualified names

Constructors

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

Instances

Eq QName |
Ord QName |
Show QName |

blank_name :: QName

Blank names

blank_cdata :: CData

Blank cdata

blank_element :: Element

Blank elements