<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -86,7 +86,11 @@ module HappyMapper
       # namespace prefix registered here will propagate down
       namespaces = node.namespaces
       if namespaces &amp;&amp; namespaces.default
-        namespaces.default_prefix = DEFAULT_NS
+        # don't assign the default_prefix if it has already been assigned
+        already_assigned = namespaces.definitions.detect do |defn|
+          namespaces.default &amp;&amp; namespaces.default.href == defn.href &amp;&amp; defn.prefix
+        end
+        namespaces.default_prefix = DEFAULT_NS unless already_assigned
         namespace ||= DEFAULT_NS
       end
 </diff>
      <filename>lib/happymapper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -6,5 +6,12 @@
       &lt;feature&gt;This is feature text 2&lt;/feature&gt;
       &lt;bug&gt;This is a bug&lt;/bug&gt;
     &lt;/features_bullets&gt;
+    &lt;address&gt;
+      &lt;street&gt;Milchstrasse&lt;/street&gt;
+      &lt;housenumber&gt;23&lt;/housenumber&gt;
+      &lt;postcode&gt;26131&lt;/postcode&gt;
+      &lt;city&gt;Oldenburg&lt;/city&gt;
+      &lt;country code=&quot;de&quot;&gt;Germany&lt;/country&gt;
+    &lt;/address&gt;
   &lt;/product&gt;
-&lt;/products&gt;
\ No newline at end of file
+&lt;/products&gt;</diff>
      <filename>spec/fixtures/product_default_namespace.xml</filename>
    </modified>
    <modified>
      <diff>@@ -2,6 +2,17 @@ require File.dirname(__FILE__) + '/spec_helper.rb'
 require 'pp'
 require 'uri'
 
+class Address
+  include HappyMapper
+  
+  tag 'address'
+  element :street, String
+  element :postcode, String
+  element :housenumber, String
+  element :city, String
+  element :country, String
+end
+
 class Feature
   include HappyMapper
   element :name, String, :tag =&gt; '.|.//text()'
@@ -20,6 +31,7 @@ class Product
 
   element :title, String
   has_one :feature_bullets, FeatureBullet
+  has_one :address, Address
 end
 
 module FamilySearch
@@ -189,17 +201,6 @@ class CurrentWeather
   element :current_condition, String, :tag =&gt; 'current-condition', :attributes =&gt; {:icon =&gt; String}
 end
 
-class Address
-  include HappyMapper
-  
-  tag 'address'
-  element :street, String
-  element :postcode, String
-  element :housenumber, String
-  element :city, String
-  element :country, String
-end
-
 # for type coercion
 class ProductGroup &lt; String; end
 </diff>
      <filename>spec/happymapper_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>9a1bb59f35f7023ea9ad8d1b4f6baa5ab89bbee6</id>
    </parent>
  </parents>
  <author>
    <name>Dave Bolton</name>
    <email>david@davidbolton.net</email>
  </author>
  <url>http://github.com/lightningdb/happymapper/commit/ac6510bcec0314435d29ae092e857e965c0e1c28</url>
  <id>ac6510bcec0314435d29ae092e857e965c0e1c28</id>
  <committed-date>2009-02-03T14:46:46-08:00</committed-date>
  <authored-date>2009-02-03T14:46:46-08:00</authored-date>
  <message>fix for issue #8: http://jnunemaker.lighthouseapp.com/projects/20014-happy-mapper/tickets/8</message>
  <tree>1f7666ccfa6e5c01ff1816c016a4cda9fe03fed1</tree>
  <committer>
    <name>Dave Bolton</name>
    <email>david@davidbolton.net</email>
  </committer>
</commit>
