aws-sdk-xml-unordered-0.3: The xml parser for aws-sdk package

Safe HaskellNone

Cloud.AWS.Lib.Parser.Unordered

Synopsis

Documentation

type ElementPath = Tree ElementNameSource

(.=) :: ElementName -> [ElementPath] -> ElementPathSource

infix version of Node

(.-) :: ElementName -> ElementPath -> ElementPathSource

tag :: ToText a => a -> ElementNameSource

end :: ElementName -> ElementPathSource

anytag :: ElementNameSource

elementConsumer :: MonadThrow m => Consumer Event m XmlElementSource

top-level xml element consumer. e.g.,

tryConvert :: MonadBaseControl IO m => (XmlElement -> m a) -> ConduitM XmlElement o m (Maybe a)Source

if conversion is success, it consume an element. otherwise, it does not consume any elements.

(.<) :: (MonadThrow m, FromText a) => XmlElement -> Text -> m aSource

the operator like aeson's (.:).

elementSource

Arguments

:: MonadThrow m 
=> Text

tag name

-> (XmlElement -> m a)

conversion function

-> XmlElement

element

-> m a 

This function throws error if the result of elementM is Nothing.

elementMSource

Arguments

:: MonadThrow m 
=> Text

tag name

-> (XmlElement -> m a)

Conversion function

-> XmlElement

element

-> m (Maybe a) 

'elementM conv name el' return Nothing if el doesn't have any elements named name. otherwise, return 'Just a'.

elementsSource

Arguments

:: MonadThrow m 
=> Text

name of sets

-> Text

name of item

-> (XmlElement -> m a)

convert function

-> XmlElement

element

-> m [a]