http://www.perlmonks.org?node_id=223560


in reply to XML::XPath memory usage

For streaming XPath you want XML::Filter::Dispatcher. It's SAX based, and supports a fairly large subset of XPath (can't support it all as that's impossible with a streamed approach). It does what you want.