epub-metadata-4.0: Library for parsing epub document metdata

Safe HaskellNone

Codec.Epub.Parse.Util

Description

Helper functions used by the other parsing modules

Synopsis

Documentation

atQTag :: ArrowXml a => QName -> a (NTree XNode) XmlTreeSource

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

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

dcName :: String -> QNameSource

Construct a qualified name in the Dublin Core namespace

opfName :: String -> QNameSource

Construct a qualified name in the epub OPF namespace

xmlName :: String -> QNameSource

Construct a qualified name in the XML namespace