Skip to content

Commit

Permalink
[dm-serializer] Cleaner strip of xml declaration
Browse files Browse the repository at this point in the history
Comments on commit e1cb5a2 indicated that it would be cleaner to remove
the XML declaration through the libraries rather than by using a regular
expression on the finished product.
  • Loading branch information
gcampbell authored and xaviershay committed Jan 18, 2009
1 parent 25e054e commit 55b312d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dm-serializer/lib/dm-serializer/xml_serializers/libxml.rb
Expand Up @@ -25,7 +25,7 @@ def self.add_node(parent, name, value, attrs = {})
end

def self.output(doc)
doc.to_s.sub(/.*\s+/, '')
doc.root.to_s
end
end
end
Expand Down
Expand Up @@ -24,7 +24,7 @@ def self.add_node(parent, name, value, attrs = {})
end

def self.output(doc)
doc.to_s.sub(/.*\s+/, '')
doc.root.to_s
end
end
end
Expand Down

0 comments on commit 55b312d

Please sign in to comment.