compact small text nodes; no modification of the tree allowed afterwards (will possibly crash if you try to modify the tree)
the default options used for parsing HTML documents
the default options used for parsing XML documents
Default DTD attributes
Load external subsets
validate with the DTD
relax any hardcoded limit from the parser
do not fixup XINCLUDE xml:base uris
remove blank nodes
merge CDATA as text nodes
Do not reuse the context dictionary
Substitute entities
suppress error reports
Forbid network access. Recommended for dealing with untrusted documents.
suppress warning reports
do not generate XINCLUDE START/END nodes
remove redundant namespaces declarations
parse using XML-1.0 before update 5
pedantic error reporting
Recover from errors
use the SAX1 interface internally
Strict parsing
Implement XInclude substitution
# File lib/nokogiri/xml/parse_options.rb, line 55 def initialize options = STRICT @options = options end
# File lib/nokogiri/xml/parse_options.rb, line 89 def inspect options = [] self.class.constants.each do |k| options << k.downcase if send(:"#{k.downcase}?") end super.sub(%r>$/, " " + options.join(', ') + ">") end
# File lib/nokogiri/xml/parse_options.rb, line 78 def strict @options &= ~RECOVER self end
# File lib/nokogiri/xml/parse_options.rb, line 83 def strict? @options & RECOVER == STRICT end