Class: ROXML::XML::Parser

Inherits:
Object show all
Defined in:
lib/roxml/xml/rexml.rb,
lib/roxml/xml/libxml.rb

Constant Summary collapse

ParseError =
REXML::ParseException

Class Method Summary collapse

Class Method Details

.parse(str_data) ⇒ Object



41
42
43
# File 'lib/roxml/xml/rexml.rb', line 41

def parse(string)
  REXML::Document.new(string, :ignore_whitespace_nodes => :all)
end

.parse_file(path) ⇒ Object



45
46
47
# File 'lib/roxml/xml/rexml.rb', line 45

def parse_file(path)
  parse(open(path))
end

.register_error_handler(&block) ⇒ Object



49
50
# File 'lib/roxml/xml/rexml.rb', line 49

def register_error_handler(&block)
end