Chris Cheung <[EMAIL PROTECTED]> writes:

> my $parser = XML::Xerces::XercesDOMParser->new();
> $parser->setDoNamespaces(1);
> 
> $parser->setValidationScheme($XML::Xerces::AbstractDOMParser::Val_Never);
> 
> $parser->parse("example.xml");
> my $doc = $parser->adoptDocument();

If you just want access to the underlying document I would call
getDocument(). adoptDocument() is if you want to inform the parser
that you are accepting responsibility for the memory of the $doc. So
when you call $parser->resetDocumentPool() it will not free up the
memory for $doc, you must do so using $doc->release().

But this is not the cause of the leak here. Just FYI.

Cheers,
jas.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to