HaXml-1.19.6: Utilities for manipulating XML documentsSource codeContentsIndex
Text.XML.HaXml.Wrappers
Synopsis
fix2Args :: IO (String, String)
processXmlWith :: CFilter Posn -> IO ()
onContent :: CFilter i -> Document i -> Document i
Documentation
fix2Args :: IO (String, String)Source
This useful auxiliary checks the commandline arguments for two filenames, the input and output file respectively. If either is missing, it is replaced by -, which can be interpreted by the caller as stdin and/or stdout.
processXmlWith :: CFilter Posn -> IO ()Source

The wrapper processXmlWith returns an IO () computation that collects the filenames (or stdin/stdout) to use when reading/writing XML documents. Its CFilter argument is applied to transform the XML document from the input and write it to the output. No DTD is attached to the output.

If the input filename ends with .html or .htm, it is parsed using the error-correcting HTML parser rather than the strict XML parser.

onContent :: CFilter i -> Document i -> Document iSource
The wrapper onContent simply applies a given content filter to a document. Ambiguous or empty results raise an error exception.
Produced by Haddock version 2.4.1