Class | LibXML::XML::HTMLParser |
In: |
ext/libxml/libxml.c
|
Parent: | Object |
Create a new parser instance with no pre-determined 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.
/* * 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) {
Obtain the XML::Parser::Context associated with this parser.
/* * 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.
/* * 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.
/* * call-seq: * parser.string -> "string" * * Obtain the string this parser works with. */ VALUE ruby_xml_html_parser_str_get(VALUE self) {