Copyright | (c) Galois Inc. 2007 (c) Herbert Valerio Riedel 2019 |
---|---|
License | BSD-3-Clause AND GPL-3.0-or-later |
Safe Haskell | None |
Language | Haskell2010 |
Lightweight XML parsing
High-level DOM Parser
parseXML :: XmlSource s => s -> Either (Pos, String) [Content] Source #
parseXML to a list of Content
chunks
parseXMLDoc :: XmlSource s => s -> Either (Pos, String) Element Source #
parseXMLDoc, parse a XML document to an Element
Token Scanner
This type may be used to provide a custom scanning function for extracting characters.
customScanner :: (s -> Maybe (Char, s)) -> s -> Scanner s Source #
This type may be used to provide a custom scanning function for extracting characters.
XML Lexer token.
TokStart !Pos QName [Attr] Bool | opening start-tag (the |
TokEnd !Pos QName | closing end-tag |
TokCRef ShortText | character entity reference |
TokText CData | character data |
TokError !Pos String | Lexer error |