Class LibXML::XML::HTMLParser
In: ext/libxml/libxml.c
Parent: Object

call-seq:

   parser.string = "string"

Set the string this parser works with.

Methods

context   new   parse   string   string   string=  

Public Class methods

Create a new parser instance with no pre-determined source.

[Source]

/*
 * call-seq:
 *    XML::HTMLParser.new -> parser
 * 
 * Create a new parser instance with no pre-determined source.
 */
VALUE
ruby_xml_html_parser_new(VALUE class) {

Create a new parser instance that will parse the given string.

[Source]

/*
 * call-seq:
 *    XML::HTMLParser.string -> parser
 * 
 * Create a new parser instance that will parse the given
 * string.
 */
VALUE
ruby_xml_html_parser_new_string(VALUE class, VALUE str) {

Public Instance methods

Obtain the XML::Parser::Context associated with this parser.

[Source]

/*
 * call-seq:
 *    parser.context -> context
 * 
 * Obtain the XML::Parser::Context associated with this
 * parser.
 */
VALUE
ruby_xml_html_parser_context_get(VALUE self) {

Parse the input XML and create an XML::Document with it‘s content. If an error occurs, XML::Parser::ParseError is thrown.

[Source]

/*
 * call-seq:
 *    parser.parse -> document
 * 
 * Parse the input XML and create an XML::Document with
 * it's content. If an error occurs, XML::Parser::ParseError
 * is thrown.
 */
VALUE
ruby_xml_html_parser_parse(VALUE self) {

Obtain the string this parser works with.

[Source]

/*
 * call-seq:
 *    parser.string -> "string"
 * 
 * Obtain the string this parser works with.
 */
VALUE
ruby_xml_html_parser_str_get(VALUE self) {

Set the string this parser works with.

[Source]

/*
 * call-seq:
 *    parser.string = "string"
 * 
 * Set the string this parser works with.
 */
VALUE
ruby_xml_html_parser_str_set(VALUE self, VALUE str) {

[Validate]