Parent

Class/Module Index [+]

Quicksearch

Nokogiri::XML::ParseOptions

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

Constants

DEFAULT_HTML
DEFAULT_XML

the default options used for parsing XML documents

DTDATTR

Default DTD attributes

DTDLOAD

Load external subsets

DTDVALID

validate with the DTD

NOBLANKS

remove blank nodes

NOCDATA

merge CDATA as text nodes

NODICT

Do not reuse the context dictionnary

NOENT

Substitute entities

NOERROR

suppress error reports

NONET

Forbid network access

NOWARNING

suppress warning reports

NOXINCNODE

do not generate XINCLUDE START/END nodes

NSCLEAN

remove redundant namespaces declarations

PEDANTIC

pedantic error reporting

RECOVER

Recover from errors

SAX1

use the SAX1 interface internally

STRICT

Strict parsing

XINCLUDE

Implement XInclude substitition

Attributes

options[RW]
to_i[RW]

Public Instance Methods

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

Public Class Methods

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.