Module | Nokogiri

In:

lib/nokogiri.rb
lib/nokogiri/css.rb
lib/nokogiri/css/node.rb
lib/nokogiri/css/parser.rb
lib/nokogiri/css/parser_extras.rb
lib/nokogiri/css/syntax_error.rb
lib/nokogiri/css/tokenizer.rb
lib/nokogiri/css/xpath_visitor.rb
lib/nokogiri/decorators/slop.rb
lib/nokogiri/html.rb
lib/nokogiri/html/builder.rb
lib/nokogiri/html/document.rb
lib/nokogiri/html/document_fragment.rb
lib/nokogiri/html/element_description.rb
lib/nokogiri/html/element_description_defaults.rb
lib/nokogiri/html/entity_lookup.rb
lib/nokogiri/html/sax/parser.rb
lib/nokogiri/html/sax/parser_context.rb
lib/nokogiri/syntax_error.rb
lib/nokogiri/version.rb
lib/nokogiri/xml.rb
lib/nokogiri/xml/attr.rb
lib/nokogiri/xml/attribute_decl.rb
lib/nokogiri/xml/builder.rb
lib/nokogiri/xml/cdata.rb
lib/nokogiri/xml/character_data.rb
lib/nokogiri/xml/document.rb
lib/nokogiri/xml/document_fragment.rb
lib/nokogiri/xml/dtd.rb
lib/nokogiri/xml/element_content.rb
lib/nokogiri/xml/element_decl.rb
lib/nokogiri/xml/entity_decl.rb
lib/nokogiri/xml/namespace.rb
lib/nokogiri/xml/node.rb
lib/nokogiri/xml/node/save_options.rb
lib/nokogiri/xml/node_set.rb
lib/nokogiri/xml/notation.rb
lib/nokogiri/xml/parse_options.rb
lib/nokogiri/xml/pp/character_data.rb
lib/nokogiri/xml/pp/node.rb
lib/nokogiri/xml/processing_instruction.rb
lib/nokogiri/xml/reader.rb
lib/nokogiri/xml/relax_ng.rb
lib/nokogiri/xml/sax/document.rb
lib/nokogiri/xml/sax/parser.rb
lib/nokogiri/xml/sax/parser_context.rb
lib/nokogiri/xml/sax/push_parser.rb
lib/nokogiri/xml/schema.rb
lib/nokogiri/xml/syntax_error.rb
lib/nokogiri/xml/text.rb
lib/nokogiri/xml/xpath.rb
lib/nokogiri/xml/xpath/syntax_error.rb
lib/nokogiri/xml/xpath_context.rb
lib/nokogiri/xslt.rb
lib/nokogiri/xslt/stylesheet.rb
ext/nokogiri/xml_sax_push_parser.c
ext/nokogiri/xml_relax_ng.c
ext/nokogiri/html_sax_parser_context.c
ext/nokogiri/html_entity_lookup.c
ext/nokogiri/xml_text.c
ext/nokogiri/nokogiri.c
ext/nokogiri/xml_element_decl.c
ext/nokogiri/xml_encoding_handler.c
ext/nokogiri/html_document.c
ext/nokogiri/xslt_stylesheet.c
ext/nokogiri/xml_attribute_decl.c
ext/nokogiri/xml_document_fragment.c
ext/nokogiri/xml_namespace.c
ext/nokogiri/xml_sax_parser_context.c
ext/nokogiri/xml_comment.c
ext/nokogiri/xml_sax_parser.c
ext/nokogiri/html_element_description.c
ext/nokogiri/xml_xpath_context.c
ext/nokogiri/xml_syntax_error.c
ext/nokogiri/xml_document.c
ext/nokogiri/xml_entity_decl.c
ext/nokogiri/xml_node.c
ext/nokogiri/xml_node_set.c
ext/nokogiri/xml_reader.c
ext/nokogiri/xml_processing_instruction.c
ext/nokogiri/xml_element_content.c
ext/nokogiri/xml_dtd.c
ext/nokogiri/xml_attr.c
ext/nokogiri/xml_schema.c
ext/nokogiri/xml_cdata.c
ext/nokogiri/xml_entity_reference.c

call-seq:

     new(document, content)

Create a new EntityReference element on the `document` with `name`

### Methods

HTML Slop XML XSLT make parse

### Classes and Modules

Module Nokogiri::CSS
Module Nokogiri::Decorators
Module Nokogiri::HTML
Module Nokogiri::XML
Module Nokogiri::XSLT
Class Nokogiri::EncodingHandler
Class Nokogiri::SyntaxError

### Constants

VERSION | = | '1.5.0' |  | The version of Nokogiri you are using
VERSION_INFO | = | VersionInfo.instance.to_hash |  | More complete version information about libxml

### Public Class methods

HTML(thing, url = nil, encoding = nil, options = XML::ParseOptions::DEFAULT_HTML, &block)

Parse HTML. Convenience method for Nokogiri::HTML::Document.parse

Slop(*args, &block)

Parse a document and add the Slop decorator. The Slop decorator implements method_missing such that methods may be used instead of CSS or XPath. For example:

      doc = Nokogiri::Slop(<<-eohtml)
        <html>
          <body>
            <p>first</p>
            <p>second</p>
          </body>
        </html>
      eohtml
      assert_equal('second', doc.html.body.p[1].text)

XML(thing, url = nil, encoding = nil, options = XML::ParseOptions::DEFAULT_XML, &block)

Parse XML. Convenience method for Nokogiri::XML::Document.parse

XSLT(stylesheet, modules = {})

Create a Nokogiri::XSLT::Stylesheet with `stylesheet`.

Example:

      xslt = Nokogiri::XSLT(File.read(ARGV[0]))

make(input = nil, opts = {})

Create a new Nokogiri::XML::DocumentFragment

parse(string, url = nil, encoding = nil, options = nil) {|doc if block_given?| ...}

Parse an HTML or XML document. `string` contains the document.

[Validate]