Safe Haskell | None |
---|
ClassyPrelude.Conduit
- module ClassyPrelude
- module Data.Conduit
- data Document = Document {}
- data Name = Name {}
- data Prologue = Prologue {}
- data Node
- data Element = Element {
- elementName :: Name
- elementAttributes :: Map Name Text
- elementNodes :: [Node]
Re-export
module ClassyPrelude
module Data.Conduit
XML
data Name
A fully qualified name.
Prefixes are not semantically important; they are included only to
simplify pass-through parsing. When comparing names with Eq
or Ord
methods, prefixes are ignored.
The IsString
instance supports Clark notation; see
http://www.jclark.com/xml/xmlns.htm and
http://infohost.nmt.edu/tcc/help/pubs/pylxml/etree-QName.html. Use
the OverloadedStrings
language extension for very simple Name
construction:
myname :: Name myname = "{http://example.com/ns/my-namespace}my-name"
Constructors
Name | |
Fields
|
data Node
Constructors
NodeElement Element | |
NodeInstruction Instruction | |
NodeContent Text | |
NodeComment Text |
data Element
Constructors
Element | |
Fields
|