Module: Amrita::XMLParser

Module Amrita::XMLParser |
In: | lib/amrita/xml.rb

Methods

parse_file parse_text

Public Class methods

parse_text(text, fname="", lno=0, dummy=nil, &block)

    # File lib/amrita/xml.rb, line 93
        def XMLParser.parse_text(text, fname="", lno=0, dummy=nil, &block)
          l = Listener.new(&block)
          REXML::Document.parse_stream(text, l)
          l.result
        end

parse_file(fname, dummy=nil, &block)

    # File lib/amrita/xml.rb, line 99
        def XMLParser.parse_file(fname, dummy=nil, &block)
          l = Listener.new(&block)
          REXML::Document.parse_stream(REXML::File.new(fname), l)
          l.result
        end