in reply to Re^4: XML::LibXML memory leak
in thread XML::LibXML memory leak
But I'm a little confused as where to go from here: my $doc = $node->ownerDocument;
{ my $doc = $node->ownerDocument; say "owner=", $doc; if ($doc) { say $_->nodeName for $doc->findnodes("//*"); } }
was just to demonstrate the issue. It shouldn't be part of your code.
I'm also stymied at the moment as I'm getting "Can't locate object method "setOwnerDocument" via package "XML::LibXML::NodeList" at..."
Nodes have owner documents, not result sets. Change the owner of the nodes in the result set.
Can't you just extract the data you need from the nodes instead of keeping the nodes themselves?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: XML::LibXML memory leak
by spstansbury (Monk) on Dec 08, 2010 at 20:31 UTC | |
by ikegami (Patriarch) on Dec 08, 2010 at 20:56 UTC | |
by spstansbury (Monk) on Dec 08, 2010 at 22:35 UTC | |
by ikegami (Patriarch) on Dec 08, 2010 at 22:53 UTC | |
by spstansbury (Monk) on Dec 09, 2010 at 19:12 UTC | |
|