Extended maintenance of Ruby versions 1.8.7 and 1.9.2 will end on July 31, 2014. Read more

In Files

  • xsd/xmlparser/parser.rb

Class/Module Index [+]

Quicksearch

XSD::XMLParser::Parser

Attributes

charset[RW]

Public Class Methods

add_factory(factory) click to toggle source
 
               # File xsd/xmlparser/parser.rb, line 36
def self.add_factory(factory)
  if $DEBUG
    puts "Set #{ factory } as XML processor."
  end
  @@parser_factory = factory
end
            
create_parser(host, opt = {}) click to toggle source
 
               # File xsd/xmlparser/parser.rb, line 32
def self.create_parser(host, opt = {})
  @@parser_factory.new(host, opt)
end
            
factory() click to toggle source
 
               # File xsd/xmlparser/parser.rb, line 28
def self.factory
  @@parser_factory
end
            
new(host, opt = {}) click to toggle source
 
               # File xsd/xmlparser/parser.rb, line 47
def initialize(host, opt = {})
  @host = host
  @charset = opt[:charset] || nil
end
            

Public Instance Methods

parse(string_or_readable) click to toggle source
 
               # File xsd/xmlparser/parser.rb, line 52
def parse(string_or_readable)
  @textbuf = ''
  prologue
  do_parse(string_or_readable)
  epilogue
end
            

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.

blog comments powered by Disqus