Skip to content

Commit

Permalink
additional parser options (nod to @jenshimmelreich)
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Mar 4, 2011
1 parent 353860e commit 685e0a2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/nokogiri/xml/parse_options.rb
Expand Up @@ -37,6 +37,14 @@ class ParseOptions
NOCDATA = 1 << 14
# do not generate XINCLUDE START/END nodes
NOXINCNODE = 1 << 15
# compact small text nodes; no modification of the tree allowed afterwards (will possibly crash if you try to modify the tree)
COMPACT = 1 << 16
# parse using XML-1.0 before update 5
OLD10 = 1 << 17
# do not fixup XINCLUDE xml:base uris
NOBASEFIX = 1 << 18
# relax any hardcoded limit from the parser
HUGE = 1 << 19

# the default options used for parsing XML documents
DEFAULT_XML = RECOVER
Expand Down

0 comments on commit 685e0a2

Please sign in to comment.