<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>examples/multi_street_address.rb</filename>
    </added>
    <added>
      <filename>spec/fixtures/multi_street_address.xml</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -137,10 +137,22 @@ module HappyMapper
         end
 
         if element?
-          result = node.find_first(xpath(namespace), namespace)
+          if(options[:single].nil? || options[:single])
+            result = node.find_first(xpath(namespace), namespace)
+          else
+            result = node.find(xpath(namespace))
+          end
           # puts &quot;vfxn: #{xpath} #{result.inspect}&quot;
           if result
-            value = yield(result)
+            if(options[:single].nil? || options[:single])
+              value = yield(result)
+            else
+              value = []
+
+              result.each do |res|
+                value &lt;&lt; yield(res)
+              end
+            end
             if options[:attributes].is_a?(Hash)
               result.attributes.each do |xml_attribute|
                 if attribute_options = options[:attributes][xml_attribute.name.to_sym]</diff>
      <filename>lib/happymapper/item.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c4ac573f66a1b822dd00ab4d730ab8d255aa100a</id>
    </parent>
  </parents>
  <author>
    <name>Michael Macasek</name>
    <email>mmacasek@mitre.org</email>
  </author>
  <url>http://github.com/jnunemaker/happymapper/commit/c5c96d0cdf1f8ec83139377bf29589e3508447a7</url>
  <id>c5c96d0cdf1f8ec83139377bf29589e3508447a7</id>
  <committed-date>2009-07-16T13:43:33-07:00</committed-date>
  <authored-date>2009-07-06T12:10:29-07:00</authored-date>
  <message>added collections for primitive values. included example class and xml</message>
  <tree>d50715eb98c9cf557afc63c4185bd1eaf9bb898c</tree>
  <committer>
    <name>Brandon Keepers</name>
    <email>brandon@collectiveidea.com</email>
  </committer>
</commit>
