xeno-0.6: A fast event-based XML parser in pure Haskell
Safe HaskellSafe-Inferred
LanguageHaskell2010

Xeno.DOM.Internal

Description

Efficient DOM data structure

Synopsis

Documentation

data Node Source #

Some XML nodes.

Constructors

Node !ByteString !Int !(Vector Int) 

Instances

Instances details
Data Node Source # 
Instance details

Defined in Xeno.DOM.Internal

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Node -> c Node #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Node #

toConstr :: Node -> Constr #

dataTypeOf :: Node -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Node) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Node) #

gmapT :: (forall b. Data b => b -> b) -> Node -> Node #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Node -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Node -> r #

gmapQ :: (forall d. Data d => d -> u) -> Node -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Node -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Node -> m Node #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Node -> m Node #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Node -> m Node #

Show Node Source # 
Instance details

Defined in Xeno.DOM.Internal

Methods

showsPrec :: Int -> Node -> ShowS #

show :: Node -> String #

showList :: [Node] -> ShowS #

NFData Node Source # 
Instance details

Defined in Xeno.DOM.Internal

Methods

rnf :: Node -> () #

Eq Node Source # 
Instance details

Defined in Xeno.DOM.Internal

Methods

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

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

data Content Source #

Content of a node.

Instances

Instances details
Data Content Source # 
Instance details

Defined in Xeno.DOM.Internal

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Content -> c Content #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Content #

toConstr :: Content -> Constr #

dataTypeOf :: Content -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Content) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Content) #

gmapT :: (forall b. Data b => b -> b) -> Content -> Content #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Content -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Content -> r #

gmapQ :: (forall d. Data d => d -> u) -> Content -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Content -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Content -> m Content #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Content -> m Content #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Content -> m Content #

Show Content Source # 
Instance details

Defined in Xeno.DOM.Internal

NFData Content Source # 
Instance details

Defined in Xeno.DOM.Internal

Methods

rnf :: Content -> () #

Eq Content Source # 
Instance details

Defined in Xeno.DOM.Internal

Methods

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

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

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).