| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Xeno.DOM
Description
DOM parser and API for XML.
- parse :: ByteString -> Either XenoException Node
- data Node
- data Content
- = Element !Node
- | Text !ByteString
- | CData !ByteString
- name :: Node -> ByteString
- attributes :: Node -> [(ByteString, ByteString)]
- contents :: Node -> [Content]
- children :: Node -> [Node]
Documentation
parse :: ByteString -> Either XenoException Node Source #
Parse a complete Nodes document.
Content of a node.
Constructors
| Element !Node | |
| Text !ByteString | |
| CData !ByteString |
name :: Node -> ByteString Source #
Name of the element.
attributes :: Node -> [(ByteString, ByteString)] Source #
Attributes of a node.