Class XSD::XMLParser::REXMLParser
In: lib/xsd/xmlparser/rexmlparser.rb
Parent: XSD::XMLParser::Parser

Methods

do_parse   epilogue   tag_end   tag_start   text   xmldecl  

Included Modules

REXML::StreamListener

Public Instance methods

[Source]

    # 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

[Source]

    # File lib/xsd/xmlparser/rexmlparser.rb, line 30
30:   def epilogue
31:   end

[Source]

    # File lib/xsd/xmlparser/rexmlparser.rb, line 37
37:   def tag_end(name)
38:     end_element(name)
39:   end

[Source]

    # File lib/xsd/xmlparser/rexmlparser.rb, line 33
33:   def tag_start(name, attrs)
34:     start_element(name, attrs)
35:   end

[Source]

    # File lib/xsd/xmlparser/rexmlparser.rb, line 41
41:   def text(text)
42:     characters(text)
43:   end

[Source]

    # File lib/xsd/xmlparser/rexmlparser.rb, line 45
45:   def xmldecl(version, encoding, standalone)
46:     # Version should be checked.
47:   end

[Validate]