xeno-0.3.5: A fast event-based XML parser in pure Haskell

Safe HaskellNone
LanguageHaskell2010

Xeno.DOM

Description

DOM parser and API for XML.

Synopsis

Documentation

parse :: ByteString -> Either XenoException Node Source #

Parse a complete Nodes document.

data Node Source #

Some XML nodes.

Instances
Eq Node Source # 
Instance details

Defined in Xeno.DOM

Methods

(==) :: Node -> Node -> Bool #

(/=) :: Node -> Node -> Bool #

Show Node Source # 
Instance details

Defined in Xeno.DOM

Methods

showsPrec :: Int -> Node -> ShowS #

show :: Node -> String #

showList :: [Node] -> ShowS #

NFData Node Source # 
Instance details

Defined in Xeno.DOM

Methods

rnf :: Node -> () #

data Content Source #

Content of a node.

Instances
Eq Content Source # 
Instance details

Defined in Xeno.DOM

Methods

(==) :: Content -> Content -> Bool #

(/=) :: Content -> Content -> Bool #

Show Content Source # 
Instance details

Defined in Xeno.DOM

name :: Node -> ByteString Source #

Name of the element.

attributes :: Node -> [(ByteString, ByteString)] Source #

Attributes of a node.

contents :: Node -> [Content] Source #

Contents of a node.

children :: Node -> [Node] Source #

Get just element children of the node (no text).