lib/atom/xml/parser.rb in ratom-0.3.1 vs lib/atom/xml/parser.rb in ratom-0.3.2
- old
+ new
@@ -42,9 +42,11 @@
elsif attributes.any?
while (xml.move_to_next_attribute == 1)
if attributes.include?(xml.name)
# Support attribute names with namespace prefixes
self.send("#{xml.name.sub(/:/, '_')}=", xml.value)
+ elsif self.respond_to?(:simple_extensions)
+ self[xml.namespace_uri, xml.local_name] << xml.value
end
end
elsif self.respond_to?(:simple_extensions)
self[xml.namespace_uri, xml.local_name] << xml.read_string
end