3.6. Module XmlOutput

XmlOutput provides output functions implemented as XmlStateFilters. These filters are very useful for printing out the XmlTree during computations while parsing, e.g. printing out the tree before and after entity processing. The whole parsing process takes place in the State-I/O monad from XmlState. If a trace level different from zero is set in this monad, these functions are used to show the computation steps.

putXmlSource :: XmlStateFilter a

Prints the XmlTree in XML representation.

putXmlTree :: XmlStateFilter a

Prints the XmlTree in tree representation.