lib/xommelier/xml/element/serialization.rb in xommelier-0.1.31 vs lib/xommelier/xml/element/serialization.rb in xommelier-0.1.32
- old
+ new
@@ -92,9 +92,10 @@
hash["xmlns:#{ns.as}"] = ns.uri
hash
end
attribute_values.delete("xmlns:#{xmlns.as}")
attribute_values.delete('xmlns:xml')
+ attribute_values.delete(:xmlns) if self.xmlns.default?
namespaces = attribute_values
prefix = nil
end
current_xmlns = builder.doc.namespaces[prefix ? "xmlns:#{prefix}" : 'xmlns']
attributes.each do |name, value|