Skip to content

Commit

Permalink
Apply the patch to fix ->as_xml destroys internal XML::LibXML object. h…
Browse files Browse the repository at this point in the history
  • Loading branch information
miyagawa committed Nov 12, 2008
1 parent 96b0a80 commit b2a1faf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/XML/Atom/Base.pm
Expand Up @@ -343,7 +343,7 @@ sub as_xml {
my $obj = shift;
if (LIBXML) {
my $doc = XML::LibXML::Document->new('1.0', 'utf-8');
$doc->setDocumentElement($obj->elem);
$doc->setDocumentElement($obj->elem->cloneNode(1));
return $doc->toString(1);
} else {
return '<?xml version="1.0" encoding="utf-8"?>' . "\n" .
Expand Down

0 comments on commit b2a1faf

Please sign in to comment.