Permalink
Browse files

Fixed issue with serialization and REXML.

  • Loading branch information...
1 parent 8654dd9 commit cc01ff5e1379e753d276eacda324e8f6ba073851 sporkmonger committed Jul 28, 2006
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/feed_tools/feed_item.rb
@@ -170,6 +170,12 @@ def xml_document
@xml_document = REXML::Document.new(self.feed_data)
end
end
+ begin
+ self.root_node.parent
+ rescue Exception
+ @xml_document = REXML::Document.new(self.feed_data)
+ @root_node = nil
+ end
return @xml_document
end

0 comments on commit cc01ff5

Please sign in to comment.