examples/amazon.rb in happymapper-0.2.0 vs examples/amazon.rb in happymapper-0.2.1

- old
+ new

@@ -1,17 +1,22 @@ dir = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib')) require File.join(dir, 'happymapper') file_contents = File.read(dir + '/../spec/fixtures/pita.xml') +# The document `pita.xml` contains both a default namespace and the 'georss' +# namespace (for the 'point' element). module PITA class Item include HappyMapper tag 'Item' # if you put class in module you need tag element :asin, String, :tag => 'ASIN' element :detail_page_url, String, :tag => 'DetailPageURL' element :manufacturer, String, :tag => 'Manufacturer', :deep => true + # this is the only element that exists in a different namespace, so it + # must be explicitly specified + element :point, String, :tag => 'point', :namespace => 'georss' end class Items include HappyMapper \ No newline at end of file