I stayed with the XPathContext method ->find and added the ->to_literal;
$av = $cve_xc->find('cvss:access-vector', $metrics)->to_literal;
which is working just fine.
Thank you for the insight into freeing the tree, that was the issue that I just wasn't seeing!
Scott...
In reply to Re^10: XML::LibXML memory leak
by spstansbury
in thread XML::LibXML memory leak
by spstansbury
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |