3.4. Module XmlInput

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

Keyword a_source ("source") from module XmlKeywords

Specifies input file (or later URL)

Keyword a_encoding ("encoding") from module XmlKeywords

Specifies encoding scheme (optional). If no encoding is specified, the parser tries to guess the encoding.