xeno-0.3.5.1: 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 #

Parse a complete Nodes document.

data Node #

Some XML nodes.

Instances
Eq Node # 
Instance details

Defined in Xeno.DOM

Methods

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

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

Show Node # 
Instance details

Defined in Xeno.DOM

Methods

showsPrec :: Int -> Node -> ShowS #

show :: Node -> String #

showList :: [Node] -> ShowS #

NFData Node # 
Instance details

Defined in Xeno.DOM

Methods

rnf :: Node -> () #

data Content #

Content of a node.

Instances
Eq Content # 
Instance details

Defined in Xeno.DOM

Methods

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

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

Show Content # 
Instance details

Defined in Xeno.DOM

name :: Node -> ByteString #

Name of the element.

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

Attributes of a node.

contents :: Node -> [Content] #

Contents of a node.

children :: Node -> [Node] #

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