XML::XPath to read multiple files

Robert Inder <[email protected]>
Newsgroups gmane.comp.lang.perl.xml
Message-ID <[email protected]>
I am trying to extend an application that uses XML::XPath to extract
fragments of information from a small XML file.

The extension will cause it to summarise this information from
MANY XML files.  Doing the obvious thing gets me a working
system, but it is slow.

Currently, I am analysing each file in turn using the existing information
extraction code, and ths is creating an XML::XPath object to do the business.

I realise that this is not a good way to do things, since the README
for XML::XPath says...

    It is very much recommended that you use only 1 XPath object
    throughout the life of your application.

But it is not obvious what I should do instead!

Yet this must surely be a common thing to do.   Musn't it?

So can someone give me (or point me to) an example of how
process a number of files with only a single XPath object?

Thanks...

Robert.
_______________________________________________
Perl-XML mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.