Object
# File lib/multi_xml/parsers/ox.rb, line 79 def append(key, value) key = key.to_s h = @stack.last if h.has_key?(key) v = h[key] if v.is_a?(Array) v << value else h[key] = [v, value] end else h[key] = value end end
# File lib/multi_xml/parsers/ox.rb, line 48 def attr(name, value) unless @stack.empty? append(name, value) end end
# File lib/multi_xml/parsers/ox.rb, line 58 def cdata(value) append('__content__', value) end
# File lib/multi_xml/parsers/ox.rb, line 71 def end_element(name) @stack.pop() end
# File lib/multi_xml/parsers/ox.rb, line 75 def error(message, line, column) raise Exception.new("#{message} at #{line}:#{column}") end
Generated with the Darkfish Rdoc Generator 2.