epub-metadata-5.4: Library for parsing epub document metadata
Safe HaskellSafe-Inferred
LanguageHaskell2010

Codec.Epub.Parse.Util

Description

Helper functions used by the other parsing modules

Synopsis

Documentation

atQTag :: ArrowXml a => QName -> a (NTree XNode) XmlTree Source #

Shortcut arrow to drill down to a specific namespaced child element

mbQTagText :: ArrowXml a => QName -> a (NTree XNode) (Maybe String) Source #

Shortcut arrow to retrieve the contents of a namespaced element as a Maybe String

mbGetAttrValue :: ArrowXml a => String -> a XmlTree (Maybe String) Source #

Shortcut arrow to retrieve an attribute of an element as a Maybe String

mbGetQAttrValue :: ArrowXml a => QName -> a XmlTree (Maybe String) Source #

Shortcut arrow to retrieve an attribute of a namespaced element as a Maybe String

notNullA :: ArrowList a => a [b] [b] Source #

Arrow that succeeds if the input is not the empty list

text :: ArrowXml a => a (NTree XNode) String Source #

Shortcut arrow to gather up the text part of all child nodes

dcName :: String -> QName Source #

Construct a qualified name in the Dublin Core namespace

opfName :: String -> QName Source #

Construct a qualified name in the epub OPF namespace

xmlName :: String -> QName Source #

Construct a qualified name in the XML namespace