Module: LibXML::XML::SaxParser::VerboseCallbacks

### Home Classes Methods

### In Files

- lib/libxml/sax_callbacks.rb

### Methods

- #on_cdata_block
- #on_characters
- #on_comment
- #on_end_document
- #on_end_element_ns
- #on_error
- #on_external_subset
- #on_has_external_subset
- #on_has_internal_subset
- #on_internal_subset
- #on_is_standalone
- #on_processing_instruction
- #on_reference
- #on_start_document
- #on_start_element_ns

### Class/Module Index

Quicksearch

- LibXML
- LibXML::XML
- LibXML::XML::Attr
- LibXML::XML::AttrDecl
- LibXML::XML::Attributes
- LibXML::XML::Document
- LibXML::XML::Error
- LibXML::XML::HTMLParser
- LibXML::XML::Namespace
- LibXML::XML::Namespaces
- LibXML::XML::Node
- LibXML::XML::Parser
- LibXML::XML::Reader
- LibXML::XML::SaxParser
- LibXML::XML::SaxParser::Callbacks
- LibXML::XML::SaxParser::VerboseCallbacks
- LibXML::XML::Schema
- LibXML::XML::Schema::Attribute
- LibXML::XML::Schema::Element
- LibXML::XML::Schema::Namespaces
- LibXML::XML::Schema::Type
- LibXML::XML::Schema::Types
- LibXML::XML::XPath
- LibXML::XML::XPath::Object
- Object

No matching classes.

# LibXML::XML::SaxParser::VerboseCallbacks

### Public Instance Methods

on_cdata_block(cdata) click to toggle source

Called for a CDATA block event.

    # File lib/libxml/sax_callbacks.rb, line 69
    def on_cdata_block(cdata)
      STDOUT << "on_cdata_block" << "\n" <<
                "  cdata " << cdata << "\n"
      STDOUT.flush
    end

on_characters(chars) click to toggle source

Called for a characters event.

    # File lib/libxml/sax_callbacks.rb, line 76
    def on_characters(chars)
      STDOUT << "on_characters" << "\n" <<
                "  chars " << chars << "\n"
      STDOUT.flush
    end

on_comment(comment) click to toggle source

Called for a comment event.

    # File lib/libxml/sax_callbacks.rb, line 83
    def on_comment(comment)
      STDOUT << "on_comment" << "\n" <<
                "  comment: " << comment << "\n"
      STDOUT.flush
    end

on_end_document() click to toggle source

Called for a end document event.

    # File lib/libxml/sax_callbacks.rb, line 90
    def on_end_document
      STDOUT << "on_end_document\n"
      STDOUT.flush
    end

on_end_element_ns(name, prefix, uri) click to toggle source

Called for a end element event.

    # File lib/libxml/sax_callbacks.rb, line 96
    def on_end_element_ns(name, prefix, uri)
      STDOUT << "on_end_element_ns" << "\n" <<
                "  name: " << name << "\n" <<
                "  prefix: " << prefix << "\n" <<
                "  uri: " << uri << "\n"
      STDOUT.flush
    end

on_error(error) click to toggle source

Called for parser errors.

    # File lib/libxml/sax_callbacks.rb, line 105
    def on_error(error)
      STDOUT << "on_error" << "\n"
                "  error " << error << "\n"
      STDOUT.flush
    end

on_external_subset(name, external_id, system_id) click to toggle source

Called for an external subset event.

    # File lib/libxml/sax_callbacks.rb, line 112
    def on_external_subset(name, external_id, system_id)
      STDOUT << "on_external_subset" << "\n"
                "  external_id " << external_id << "\n" <<
                "  system_id   " << system_id << "\n"
      STDOUT.flush
    end

on_has_external_subset() click to toggle source

Called for an external subset notification event.

    # File lib/libxml/sax_callbacks.rb, line 120
    def on_has_external_subset
      STDOUT << "on_has_internal_subset\n"
      STDOUT.flush
    end

on_has_internal_subset() click to toggle source

Called for an internal subset notification event.

    # File lib/libxml/sax_callbacks.rb, line 126
    def on_has_internal_subset
      STDOUT << "on_has_internal_subset\n"
      STDOUT.flush
    end

on_internal_subset(name, external_id, system_id) click to toggle source

Called for an internal subset event.

    # File lib/libxml/sax_callbacks.rb, line 132
    def on_internal_subset(name, external_id, system_id)
      STDOUT << "on_internal_subset" << "\n"
                "  external_id " << external_id << "\n" <<
                "  system_id   " << system_id << "\n"
      STDOUT.flush
    end

on_is_standalone() click to toggle source

Called for 'is standalone' event.

    # File lib/libxml/sax_callbacks.rb, line 140
    def on_is_standalone
      STDOUT << "on_is_standalone\n"
      STDOUT.flush
    end

on_processing_instruction(target, data) click to toggle source

Called for an processing instruction event.

    # File lib/libxml/sax_callbacks.rb, line 146
    def on_processing_instruction(target, data)
      STDOUT << "on_characters" << "\n"
                "  target: " << target << "\n" <<
                "  data:   " << data << "\n"
      STDOUT.flush
    end

on_reference(name) click to toggle source

Called for a reference event.

    # File lib/libxml/sax_callbacks.rb, line 154
    def on_reference(name)
      STDOUT << "on_reference:" << "\n" <<
                "  name:" << name << "\n"
      STDOUT.flush
    end

on_start_document() click to toggle source

Called for a start document event.

    # File lib/libxml/sax_callbacks.rb, line 161
    def on_start_document
      STDOUT << "on_start_document\n"
      STDOUT.flush
    end

on_start_element_ns(name, attributes, prefix, uri, namespaces) click to toggle source

Called for a start element event.

    # File lib/libxml/sax_callbacks.rb, line 167
    def on_start_element_ns(name, attributes, prefix, uri, namespaces)
      STDOUT << "on_start_element_ns" << "\n" <<
                "  name: " << name << "\n" <<
                "  attr: " << (attributes || Hash.new).inspect << "\n" <<
                "  prefix: " << prefix << "\n" <<
                "  uri: " << uri << "\n" <<
                "  ns_defs: " << (namespaces || Hash.new).inspect << "\n"
      STDOUT.flush
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.