What data do you want to extract from each element? ->textValue?
In reply to Re^9: XML::LibXML memory leak by ikegami in thread XML::LibXML memory leak by spstansbury