|
"DTD/xhtml1-strict.dtd">
parse_text(text, fname="", lno=0, dummy=nil, &block)
|
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)
|
def XMLParser.parse_file(fname, dummy=nil, &block)
l = Listener.new(&block)
REXML::Document.parse_stream(REXML::File.new(fname), l)
l.result
end
|