Design and Implementation of a validating XML parser in Haskell: Master's thesis; University of Applied Sciences Wedel | ||
---|---|---|
Prev | Chapter 3. Package hparser | Next |
The module XmlInput provides input functions implemented as filters of type XmlStateFilter. The main function is getXmlContents, which returns an XmlStateFilter for reading the content. This filter expects as input a node of type NTree XTag with several arguments stored in its attribute list. The child list of this node should be empty, because the parsed document will be stored there.
Protocols like the http or file protocol are not supported at the moment. Unfortunately there does not seem to exist any Haskell library supporting theses protocols. Perhaps later versions of the parser will use the curl command.
Arguments of getXmlContents
Specifies input file (or later URL)
Specifies encoding scheme (optional). If no encoding is specified, the parser tries to guess the encoding.