in reply to Re: XPath query issue...
in thread XPath query issue...

Thank you!

That worked as I had intended, but could not make happen...

Question: The process is very slow. The source files range from 12Mb to 30Mb. Is there another approach that would search through the file faster?

Thanks again for your help...

Scott...

Replies are listed 'Best First'.
Re^3: XPath query issue...
by ikegami (Patriarch) on Sep 02, 2009 at 20:11 UTC

    I don't know how fast a parser you are using. XML::LibXML is extremely fast.

    Each XPath is surely parsed repeatedly. You could avoid using XPath inside the loop.

    Each find will search through all of the child nodes, but since it seems you want most of the child nodes. You could replace the XPath with a loop that populates a hash.