From f9577147d6e8ca11c71111b7ae77eeda0e982d75 Mon Sep 17 00:00:00 2001 From: idris Date: Mon, 13 Sep 2010 16:59:32 -0400 Subject: [PATCH] get rid of `xmlns` field --- lib/constant_contact/formats/atom_format.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/constant_contact/formats/atom_format.rb b/lib/constant_contact/formats/atom_format.rb index 4e178a5..e74f961 100644 --- a/lib/constant_contact/formats/atom_format.rb +++ b/lib/constant_contact/formats/atom_format.rb @@ -27,10 +27,12 @@ def decode(xml) def from_atom_data(xml) if is_collection?(xml) - return content_from_collection(xml) + result = content_from_collection(xml) else - return content_from_single_record(xml) + result = content_from_single_record(xml) end + result.delete('xmlns') + return result end def no_content?(xml)