Class | XSD::XMLParser::REXMLParser |
In: |
lib/xsd/xmlparser/rexmlparser.rb
|
Parent: | XSD::XMLParser::Parser |
# File lib/xsd/xmlparser/rexmlparser.rb, line 21 21: def do_parse(string_or_readable) 22: source = nil 23: source = REXML::SourceFactory.create_from(string_or_readable) 24: source.encoding = charset if charset 25: # Listener passes a String in utf-8. 26: @charset = 'utf-8' 27: REXML::Document.parse_stream(source, self) 28: end
# File lib/xsd/xmlparser/rexmlparser.rb, line 37 37: def tag_end(name) 38: end_element(name) 39: end
# File lib/xsd/xmlparser/rexmlparser.rb, line 33 33: def tag_start(name, attrs) 34: start_element(name, attrs) 35: end