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

Portability | portable
Stability | stable
Maintainer | Uwe Schmidt (uwe@fh-wedel.de)
Safe Haskell | Safe-Infered

Text.XML.HXT.Arrow.XmlOptions

Description

system configuration and common options options

Synopsis

- inputOptions :: [OptDescr SysConfig]
- outputOptions :: [OptDescr SysConfig]
- generalOptions :: [OptDescr SysConfig]
- versionOptions :: [OptDescr SysConfig]
- showOptions :: [OptDescr SysConfig]
- a_accept_mimetypes, a_verbose, a_validate, a_trace, a_text_mode, a_subst_html_entities, a_subst_dtd_entities, a_strict_input, a_show_tree, a_show_haskell, a_remove_whitespace, a_redirect, a_proxy, a_preserve_comment, a_parse_xml, a_parse_html, a_parse_by_mimetype, a_output_plain, a_output_xhtml, a_output_html, a_output_xml, a_output_file, a_no_xml_pi, a_no_redirect, a_no_empty_elem_for, a_no_empty_elements, a_mime_types, a_issue_warnings, a_issue_errors, a_indent, a_ignore_none_xml_contents, a_ignore_encoding_errors, a_if_unmodified_since, a_if_modified_since, a_help, a_error_log, a_error, a_do_not_validate, a_do_not_subst_html_entities, a_do_not_subst_dtd_entities, a_do_not_remove_whitespace, a_do_not_preserve_comment, a_do_not_issue_warnings, a_do_not_issue_errors, a_do_not_check_namespaces, a_do_not_canonicalize, a_default_baseuri, a_collect_errors, a_check_namespaces, a_canonicalize, a_add_default_dtd :: String
- selectOptions :: [String] -> [OptDescr a] -> [OptDescr a]
- removeOptions :: [String] -> [OptDescr a] -> [OptDescr a]

# Documentation

inputOptions :: [OptDescr SysConfig]

commonly useful options for XML input

can be used for option definition with haskell getopt

defines options: `a_trace`, `a_proxy`, `a_use_curl`, `a_do_not_use_curl`, `a_options_curl`, `a_encoding`, `a_issue_errors`, `a_do_not_issue_errors`, `a_parse_html`, `a_parse_by_mimetype`, `a_issue_warnings`, `a_do_not_issue_warnings`, `a_parse_xml`, `a_validate`, `a_do_not_validate`, `a_canonicalize`, `a_do_not_canonicalize`,

outputOptions :: [OptDescr SysConfig]

commonly useful options for XML output

defines options: `a_indent`, `a_output_encoding`, `a_output_html` and others

generalOptions :: [OptDescr SysConfig]

commonly useful options

defines options: `a_verbose`, `a_help`

versionOptions :: [OptDescr SysConfig]

defines `a_version` option

showOptions :: [OptDescr SysConfig]

debug output options

a_accept_mimetypes, a_verbose, a_validate, a_trace, a_text_mode, a_subst_html_entities, a_subst_dtd_entities, a_strict_input, a_show_tree, a_show_haskell, a_remove_whitespace, a_redirect, a_proxy, a_preserve_comment, a_parse_xml, a_parse_html, a_parse_by_mimetype, a_output_plain, a_output_xhtml, a_output_html, a_output_xml, a_output_file, a_no_xml_pi, a_no_redirect, a_no_empty_elem_for, a_no_empty_elements, a_mime_types, a_issue_warnings, a_issue_errors, a_indent, a_ignore_none_xml_contents, a_ignore_encoding_errors, a_if_unmodified_since, a_if_modified_since, a_help, a_error_log, a_error, a_do_not_validate, a_do_not_subst_html_entities, a_do_not_subst_dtd_entities, a_do_not_remove_whitespace, a_do_not_preserve_comment, a_do_not_issue_warnings, a_do_not_issue_errors, a_do_not_check_namespaces, a_do_not_canonicalize, a_default_baseuri, a_collect_errors, a_check_namespaces, a_canonicalize, a_add_default_dtd :: String

selectOptions :: [String] -> [OptDescr a] -> [OptDescr a]

select options from a predefined list of option desciptions

removeOptions :: [String] -> [OptDescr a] -> [OptDescr a]