Module | Nokogiri

In:

lib/nokogiri.rb
lib/nokogiri/css.rb
lib/nokogiri/css/generated_parser.rb
lib/nokogiri/css/generated_tokenizer.rb
lib/nokogiri/css/node.rb
lib/nokogiri/css/parser.rb
lib/nokogiri/css/syntax_error.rb
lib/nokogiri/css/tokenizer.rb
lib/nokogiri/css/xpath_visitor.rb
lib/nokogiri/decorators/hpricot/node.rb
lib/nokogiri/decorators/hpricot/node_set.rb
lib/nokogiri/decorators/hpricot/xpath_visitor.rb
lib/nokogiri/decorators/slop.rb
lib/nokogiri/ffi/html/document.rb
lib/nokogiri/ffi/html/element_description.rb
lib/nokogiri/ffi/html/entity_lookup.rb
lib/nokogiri/ffi/html/sax/parser.rb
lib/nokogiri/ffi/io_callbacks.rb
lib/nokogiri/ffi/libxml.rb
lib/nokogiri/ffi/structs/common_node.rb
lib/nokogiri/ffi/structs/html_elem_desc.rb
lib/nokogiri/ffi/structs/html_entity_desc.rb
lib/nokogiri/ffi/structs/xml_alloc.rb
lib/nokogiri/ffi/structs/xml_attr.rb
lib/nokogiri/ffi/structs/xml_buffer.rb
lib/nokogiri/ffi/structs/xml_document.rb
lib/nokogiri/ffi/structs/xml_dtd.rb
lib/nokogiri/ffi/structs/xml_node.rb
lib/nokogiri/ffi/structs/xml_node_set.rb
lib/nokogiri/ffi/structs/xml_notation.rb
lib/nokogiri/ffi/structs/xml_ns.rb
lib/nokogiri/ffi/structs/xml_relax_ng.rb
lib/nokogiri/ffi/structs/xml_sax_handler.rb
lib/nokogiri/ffi/structs/xml_sax_push_parser_context.rb
lib/nokogiri/ffi/structs/xml_schema.rb
lib/nokogiri/ffi/structs/xml_syntax_error.rb
lib/nokogiri/ffi/structs/xml_text_reader.rb
lib/nokogiri/ffi/structs/xml_xpath_context.rb
lib/nokogiri/ffi/structs/xml_xpath_object.rb
lib/nokogiri/ffi/structs/xml_xpath_parser_context.rb
lib/nokogiri/ffi/structs/xslt_stylesheet.rb
lib/nokogiri/ffi/xml/attr.rb
lib/nokogiri/ffi/xml/cdata.rb
lib/nokogiri/ffi/xml/comment.rb
lib/nokogiri/ffi/xml/document.rb
lib/nokogiri/ffi/xml/document_fragment.rb
lib/nokogiri/ffi/xml/dtd.rb
lib/nokogiri/ffi/xml/entity_reference.rb
lib/nokogiri/ffi/xml/namespace.rb
lib/nokogiri/ffi/xml/node.rb
lib/nokogiri/ffi/xml/node_set.rb
lib/nokogiri/ffi/xml/processing_instruction.rb
lib/nokogiri/ffi/xml/reader.rb
lib/nokogiri/ffi/xml/relax_ng.rb
lib/nokogiri/ffi/xml/sax/parser.rb
lib/nokogiri/ffi/xml/sax/push_parser.rb
lib/nokogiri/ffi/xml/schema.rb
lib/nokogiri/ffi/xml/syntax_error.rb
lib/nokogiri/ffi/xml/text.rb
lib/nokogiri/ffi/xml/xpath.rb
lib/nokogiri/ffi/xml/xpath_context.rb
lib/nokogiri/ffi/xslt/stylesheet.rb
lib/nokogiri/hpricot.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/entity_lookup.rb
lib/nokogiri/html/sax/parser.rb
lib/nokogiri/syntax_error.rb
lib/nokogiri/version.rb
lib/nokogiri/version_warning.rb
lib/nokogiri/xml.rb
lib/nokogiri/xml/attr.rb
lib/nokogiri/xml/builder.rb
lib/nokogiri/xml/cdata.rb
lib/nokogiri/xml/document.rb
lib/nokogiri/xml/document_fragment.rb
lib/nokogiri/xml/dtd.rb
lib/nokogiri/xml/entity_declaration.rb
lib/nokogiri/xml/fragment_handler.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/processing_instruction.rb
lib/nokogiri/xml/reader.rb
lib/nokogiri/xml/relax_ng.rb
lib/nokogiri/xml/sax/document.rb
lib/nokogiri/xml/sax/legacy_handlers.rb
lib/nokogiri/xml/sax/parser.rb
lib/nokogiri/xml/sax/push_parser.rb
lib/nokogiri/xml/schema.rb
lib/nokogiri/xml/syntax_error.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/html_document.c
ext/nokogiri/html_element_description.c
ext/nokogiri/html_entity_lookup.c
ext/nokogiri/html_sax_parser.c
ext/nokogiri/nokogiri.c
ext/nokogiri/xml_attr.c
ext/nokogiri/xml_cdata.c
ext/nokogiri/xml_comment.c
ext/nokogiri/xml_document.c
ext/nokogiri/xml_document_fragment.c
ext/nokogiri/xml_dtd.c
ext/nokogiri/xml_entity_reference.c
ext/nokogiri/xml_namespace.c
ext/nokogiri/xml_node.c
ext/nokogiri/xml_node_set.c
ext/nokogiri/xml_processing_instruction.c
ext/nokogiri/xml_reader.c
ext/nokogiri/xml_relax_ng.c
ext/nokogiri/xml_sax_parser.c
ext/nokogiri/xml_sax_push_parser.c
ext/nokogiri/xml_schema.c
ext/nokogiri/xml_syntax_error.c
ext/nokogiri/xml_text.c
ext/nokogiri/xml_xpath.c
ext/nokogiri/xml_xpath_context.c
ext/nokogiri/xslt_stylesheet.c

call-seq:

      transform(document, params = [])

Apply an XSLT stylesheet to an XML::Document. `params` is an array of strings used as XSLT parameters. returns Nokogiri::XML::Document

Example:

      doc   = Nokogiri::XML(File.read(ARGV[0]))
      xslt  = Nokogiri::XSLT(File.read(ARGV[1]))
      puts xslt.transform(doc, ['key', 'value'])

### Methods

HTML Hpricot Slop XML XSLT make parse

### Classes and Modules

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

### Constants

LIBXML_PARSER_VERSION | = | LibXML.__xmlParserVersion().read_pointer.read_string
LIBXML_VERSION | = | LIBXML_PARSER_VERSION.scan(/^(.*)(..)(..)$/).first.collect{|j|j.to_i}.join(".")
VERSION | = | '1.3.2' |  | The version of Nokogiri you are using
VERSION_INFO | = | {} |  | 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

Hpricot(*args, &block)

Parse a document and apply the Hpricot decorators for Hpricot compatibility mode.

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)

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]