hxt-8.5.2: A collection of tools for processing XML with Haskell.

Text.XML.HXT.DOM.XmlOptions

Description

Common useful options

Version : $Id: XmlOptions.hs,v 1.1 20061109 20:27:42 hxml Exp $

Synopsis

Documentation

outputOptions :: [OptDescr (String, String)]Source

commonly useful options for XML output

defines options: a_indent, a_output_encoding, a_output_file, a_output_html

generalOptions :: [OptDescr (String, String)]Source

commonly useful options

defines options: a_verbose, a_help

showOptions :: [OptDescr (String, String)]Source

debug output options

selectOptions :: [String] -> [OptDescr (String, String)] -> [OptDescr (String, String)]Source

select options from a predefined list of option desciptions

optionIsSet :: String -> Attributes -> BoolSource

check whether an option is set

reads the value of an attribute, usually applied to a document root node, and checks if the value represents True. The following strings are interpreted as true: "1", "True", "true", "yes", "Yes".

isTrueValue :: String -> BoolSource

check whether a string represents True

definition:

 isTrueValue	= (`elem` ["1", "True", "true", "Yes", "yes"])