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

call-seq:

   callbacks.on_external_subset(name, external_id, system_id)

Called for an external subset event.

Methods

callbacks   callbacks=   filename   filename=   new   parse   string   string=  

Public Class methods

Create a new XML::SaxParser instance.

[Source]

/*
 * call-seq:
 *    XML::SaxParser.new -> sax_parser
 * 
 * Create a new XML::SaxParser instance.
 */
VALUE
ruby_xml_sax_parser_new(VALUE class) {

Public Instance methods

Obtain the callbacks used by this parser.

[Source]

/*
 * call-seq:
 *    sax_parser.callbacks -> #<XML::SaxParser::Callbacks subclass>
 * 
 * Obtain the callbacks used by this parser.
 */
VALUE
ruby_xml_sax_parser_callbacks_get(VALUE self) {

Set the callbacks used by this parser. The value assigned to this attributesibute will usually be an object that extends the the XML::SaxParser::Callbacks module, overriding the callbacks it wishes to process.

[Source]

/*
 * call-seq:
 *    sax_parser.callbacks = #<XML::SaxParser::Callbacks subclass>
 * 
 * Set the callbacks used by this parser. The value assigned to
 * this attributesibute will usually be an object that extends the the 
 * XML::SaxParser::Callbacks module, overriding the callbacks it
 * wishes to process.
 */
VALUE
ruby_xml_sax_parser_callbacks_set(VALUE self, VALUE callbacks) {

Obtain the filename this parser reads from.

[Source]

/*
 * call-seq:
 *    sax_parser.filename -> "filename"
 * 
 * Obtain the filename this parser reads from.
 */
VALUE
ruby_xml_sax_parser_filename_get(VALUE self) {

Set the filename this parser reads from.

[Source]

/*
 * call-seq:
 *    sax_parser.filename = "filename"
 * 
 * Set the filename this parser reads from.
 */
VALUE
ruby_xml_sax_parser_filename_set(VALUE self, VALUE filename) {

Parse the input XML, generating callbacks to the object registered via the callbacks attributesibute.

[Source]

/*
 * call-seq:
 *    parser.parse -> (true|false)
 * 
 * Parse the input XML, generating callbacks to the object
 * registered via the +callbacks+ attributesibute.
 */
VALUE
ruby_xml_sax_parser_parse(VALUE self) {

Obtain the parser‘s input string.

[Source]

/*
 * call-seq:
 *    parser.string -> "xml"
 * 
 * Obtain the parser's input string.
 */
VALUE
ruby_xml_sax_parser_str_get(VALUE self) {

Set the parser‘s input string.

[Source]

/*
 * call-seq:
 *    parser.string = "xml"
 * 
 * Set the parser's input string.
 */
VALUE
ruby_xml_sax_parser_str_set(VALUE self, VALUE str) {

[Validate]