lib/dm-serializer/xml_serializers/nokogiri.rb in dm-serializer-0.9.9 vs lib/dm-serializer/xml_serializers/nokogiri.rb in dm-serializer-0.9.10

- old
+ new

@@ -20,9 +20,13 @@ node << ::Nokogiri::XML::Text.new(value.to_s, parent.document) unless value.nil? attrs.each {|attr_name, attr_val| node[attr_name] = attr_val } parent << node node end + + def self.output(doc) + doc.root.to_s + end end end end end