|
| Text.ParserCombinators.Parsec.XML | | Maintainer | Henning Guenther |
|
|
|
| Description |
| Helper functions to use a Parsec-Parser for XML documents.
|
|
| Synopsis |
|
|
|
| Documentation |
|
| type XMLParser a = GenParser (Content Posn) () a |
| A Parser for XML Content.
|
|
| anyContent :: XMLParser (Content Posn) |
| Accepts any content.
|
|
| content :: (Content Posn -> Maybe a) -> XMLParser a |
| Accepts content verified by a function.
|
|
| element :: XMLParser (Element Posn) |
| Forces an Element as next token.
|
|
| text :: XMLParser String |
| Forces plain text as next token.
|
|
| namedElement :: String -> XMLParser [Content Posn] |
| As namedElementWithAttrs, ony that the attributes are ignored.
|
|
| namedElementWithAttrs :: String -> XMLParser ([Attribute], [Content Posn]) |
| Parses an element with given name. Returns the xml Attributes.
|
|
| stringElement :: String -> XMLParser String |
| Parses an element with a given name. The text content is returned.
|
|
| recurse :: XMLParser a -> [Content Posn] -> XMLParser a |
| Helper function to recurse through an XML document.
|
|
| recurseElements :: XMLParser a -> [Content Posn] -> XMLParser a |
| Helper function to recurse through an XML document.
|
|
| Produced by Haddock version 0.8 |