Parent

Class Index [+]

Quicksearch

Nokogiri::XML::ParseOptions

 

Parse options for passing to Nokogiri.XML or Nokogiri.HTML

Constants

STRICT

Strict parsing

RECOVER

Recover from errors

NOENT

Substitute entities

DTDLOAD

Load external subsets

DTDATTR

Default DTD attributes

DTDVALID

validate with the DTD

NOERROR

suppress error reports

NOWARNING

suppress warning reports

PEDANTIC

pedantic error reporting

NOBLANKS

remove blank nodes

SAX1

use the SAX1 interface internally

XINCLUDE

Implement XInclude substitition

NONET

Forbid network access

NODICT

Do not reuse the context dictionnary

NSCLEAN

remove redundant namespaces declarations

NOCDATA

merge CDATA as text nodes

NOXINCNODE

do not generate XINCLUDE START/END nodes

DEFAULT_XML

the default options used for parsing XML documents

DEFAULT_HTML

Attributes

options[RW]

Public Class Methods

new(options = STRICT) click to toggle source
    # File lib/nokogiri/xml/parse_options.rb, line 47
47:       def initialize options = STRICT
48:         @options = options
49:       end

Public Instance Methods

inspect() click to toggle source
    # File lib/nokogiri/xml/parse_options.rb, line 76
76:       def inspect
77:         options = []
78:         self.class.constants.each do |k|
79:           options << k.downcase if send(:"#{k.downcase}?")
80:         end
81:         super.sub(/>$/, " " + options.join(', ') + ">")
82:       end
strict() click to toggle source
    # File lib/nokogiri/xml/parse_options.rb, line 65
65:       def strict
66:         @options &= ~RECOVER
67:         self
68:       end
strict?() click to toggle source
    # File lib/nokogiri/xml/parse_options.rb, line 70
70:       def strict?
71:         @options & RECOVER == STRICT
72:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.