In Files

  • xsd/xmlparser/rexmlparser.rb

Included Modules

Class/Module Index [+]

Quicksearch

XSD::XMLParser::REXMLParser

Public Instance Methods

do_parse(string_or_readable) click to toggle source
 
               # File xsd/xmlparser/rexmlparser.rb, line 21
def do_parse(string_or_readable)
  source = nil
  source = REXML::SourceFactory.create_from(string_or_readable)
  source.encoding = charset if charset
  # Listener passes a String in utf-8.
  @charset = 'utf-8'
  REXML::Document.parse_stream(source, self)
end
            
epilogue() click to toggle source
 
               # File xsd/xmlparser/rexmlparser.rb, line 30
def epilogue
end
            
tag_end(name) click to toggle source
 
               # File xsd/xmlparser/rexmlparser.rb, line 37
def tag_end(name)
  end_element(name)
end
            
tag_start(name, attrs) click to toggle source
 
               # File xsd/xmlparser/rexmlparser.rb, line 33
def tag_start(name, attrs)
  start_element(name, attrs)
end
            
text(text) click to toggle source
 
               # File xsd/xmlparser/rexmlparser.rb, line 41
def text(text)
  characters(text)
end
            
xmldecl(version, encoding, standalone) click to toggle source
 
               # File xsd/xmlparser/rexmlparser.rb, line 45
def xmldecl(version, encoding, standalone)
  # Version should be checked.
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