Module: Wakizashi::Document::Options
- Included in:
- CreationMethods
- Defined in:
- lib/wakizashi/xml_document.rb
Constant Summary collapse
- HTML_PARSE_RECOVER =
Relaxed parsing
1- HTML_PARSE_NODEFDTD =
do not default a doctype if not found
4- HTML_PARSE_NOERROR =
suppress error reports
32- HTML_PARSE_NOWARNING =
suppress warning reports
64- HTML_PARSE_PEDANTIC =
pedantic error reporting
128- HTML_PARSE_NOBLANKS =
remove blank nodes
256- HTML_PARSE_NONET =
Forbid network access
2048- HTML_PARSE_NOIMPLIED =
Do not add implied html/body… elements
8192- HTML_PARSE_COMPACT =
compact small text nodes
65536- HTML_PARSE_IGNORE_ENC =
ignore internal document encoding hint
2097152- HTML_PARSE_OPTIONS =
{ :recover => HTML_PARSE_RECOVER, :nodefdtd => HTML_PARSE_NODEFDTD, :noerror => HTML_PARSE_NOERROR, :nowarning => HTML_PARSE_NOWARNING, :pedantic => HTML_PARSE_PEDANTIC, :noblanks => HTML_PARSE_NOBLANKS, :nonet => HTML_PARSE_NONET, :noimplied => HTML_PARSE_NOIMPLIED, :compact => HTML_PARSE_COMPACT, :ignore_enc => HTML_PARSE_IGNORE_ENC }
- DEFAULT_HTML_OPTIONS =
[:nowarning, :noerror]
- XML_PARSE_RECOVER =
recover on errors
1- XML_PARSE_NOENT =
substitute entities
2- XML_PARSE_DTDLOAD =
load the external subset
4- XML_PARSE_DTDATTR =
default DTD attributes
8- XML_PARSE_DTDVALID =
validate with the DTD
16- XML_PARSE_NOERROR =
suppress error reports
32- XML_PARSE_NOWARNING =
suppress warning reports
64- XML_PARSE_PEDANTIC =
pedantic error reporting
128- XML_PARSE_NOBLANKS =
remove blank nodes
256- XML_PARSE_SAX1 =
use the SAX1 interface internally
512- XML_PARSE_XINCLUDE =
Implement XInclude substitition
1024- XML_PARSE_NONET =
Forbid network access
2048- XML_PARSE_NODICT =
Do not reuse the context dictionnary
4096- XML_PARSE_NSCLEAN =
remove redundant namespaces declarations
8192- XML_PARSE_NOCDATA =
merge CDATA as text nodes
16384- XML_PARSE_NOXINCNODE =
do not generate XINCLUDE START/END nodes
32768- XML_PARSE_COMPACT =
compact small text nodes; no modification of the tree allowed afterwards (will possibly crash if you try to modify the tree)
65536- XML_PARSE_OLD10 =
parse using XML-1.0 before update 5
131072- XML_PARSE_NOBASEFIX =
do not fixup XINCLUDE xml:base uris
262144- XML_PARSE_HUGE =
relax any hardcoded limit from the parser
524288- XML_PARSE_OLDSAX =
parse using SAX2 interface before 2.7.0
1048576- XML_PARSE_IGNORE_ENC =
ignore internal document encoding hint
2097152- XML_PARSE_OPTIONS =
{ :recover => XML_PARSE_RECOVER, :noent => XML_PARSE_NOENT, :dtdload => XML_PARSE_DTDLOAD, :dtdattr => XML_PARSE_DTDATTR, :dtdvalid => XML_PARSE_DTDVALID, :noerror => XML_PARSE_NOERROR, :nowarning => XML_PARSE_NOWARNING, :pedantic => XML_PARSE_PEDANTIC, :noblanks => XML_PARSE_NOBLANKS, :sax1 => XML_PARSE_SAX1, :xinclude => XML_PARSE_XINCLUDE, :nonet => XML_PARSE_NONET, :nodict => XML_PARSE_NODICT, :nsclean => XML_PARSE_NSCLEAN, :nocdata => XML_PARSE_NOCDATA, :noxincnode => XML_PARSE_NOXINCNODE, :compact => XML_PARSE_COMPACT, :old10 => XML_PARSE_OLD10, :nobasefix => XML_PARSE_NOBASEFIX, :huge => XML_PARSE_HUGE, :oldsax => XML_PARSE_OLDSAX, :ignore_enc => XML_PARSE_IGNORE_ENC }
- DEFAULT_XML_OPTIONS =
[:nocdata, :noblanks]