Safe Haskell | None |
---|---|
Language | Haskell2010 |
DOM parser and API for XML.
Synopsis
- 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.
Some XML nodes.
Content of a node.
name :: Node -> ByteString Source #
Name of the element.
attributes :: Node -> [(ByteString, ByteString)] Source #
Attributes of a node.