hexpat-0.12: wrapper for expat, the fast XML parserSource codeContentsIndex
Text.XML.Expat.Proc
Description
This module ported from Text.XML.Light.Proc
Synopsis
onlyElems :: [Node tag text] -> [Node tag text]
onlyText :: [Node tag text] -> [text]
findChildren :: GenericXMLString tag => tag -> Node tag text -> [Node tag text]
filterChildren :: (Node tag text -> Bool) -> Node tag text -> [Node tag text]
filterChildrenName :: (tag -> Bool) -> Node tag text -> [Node tag text]
findChild :: GenericXMLString tag => tag -> Node tag text -> Maybe (Node tag text)
filterChild :: (Node tag text -> Bool) -> Node tag text -> Maybe (Node tag text)
filterChildName :: (tag -> Bool) -> Node tag text -> Maybe (Node tag text)
findElement :: GenericXMLString tag => tag -> Node tag text -> Maybe (Node tag text)
filterElement :: (Node tag text -> Bool) -> Node tag text -> Maybe (Node tag text)
filterElementName :: (tag -> Bool) -> Node tag text -> Maybe (Node tag text)
findElements :: GenericXMLString tag => tag -> Node tag text -> [Node tag text]
filterElements :: (Node tag text -> Bool) -> Node tag text -> [Node tag text]
filterElementsName :: (tag -> Bool) -> Node tag text -> [Node tag text]
Documentation
onlyElems :: [Node tag text] -> [Node tag text]Source
Select only the elements from a list of XML content.
onlyText :: [Node tag text] -> [text]Source
Select only the text from a list of XML content.
findChildren :: GenericXMLString tag => tag -> Node tag text -> [Node tag text]Source
Find all immediate children with the given name.
filterChildren :: (Node tag text -> Bool) -> Node tag text -> [Node tag text]Source
Filter all immediate children wrt a given predicate.
filterChildrenName :: (tag -> Bool) -> Node tag text -> [Node tag text]Source
Filter all immediate children wrt a given predicate over their names.
findChild :: GenericXMLString tag => tag -> Node tag text -> Maybe (Node tag text)Source
Find an immediate child with the given name.
filterChild :: (Node tag text -> Bool) -> Node tag text -> Maybe (Node tag text)Source
Find an immediate child with the given name.
filterChildName :: (tag -> Bool) -> Node tag text -> Maybe (Node tag text)Source
Find an immediate child with name matching a predicate.
findElement :: GenericXMLString tag => tag -> Node tag text -> Maybe (Node tag text)Source
Find the left-most occurrence of an element matching given name.
filterElement :: (Node tag text -> Bool) -> Node tag text -> Maybe (Node tag text)Source
Filter the left-most occurrence of an element wrt. given predicate.
filterElementName :: (tag -> Bool) -> Node tag text -> Maybe (Node tag text)Source
Filter the left-most occurrence of an element wrt. given predicate.
findElements :: GenericXMLString tag => tag -> Node tag text -> [Node tag text]Source
Find all non-nested occurances of an element. (i.e., once we have found an element, we do not search for more occurances among the element's children).
filterElements :: (Node tag text -> Bool) -> Node tag text -> [Node tag text]Source
Find all non-nested occurrences of an element wrt. given predicate. (i.e., once we have found an element, we do not search for more occurances among the element's children).
filterElementsName :: (tag -> Bool) -> Node tag text -> [Node tag text]Source
Find all non-nested occurences of an element wrt a predicate over element names. (i.e., once we have found an element, we do not search for more occurances among the element's children).
Produced by Haddock version 2.6.1