ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-xml
perl-xml
XML::XPath to read multiple files
by Robert Inder other posts by this author
Oct 19 2009 9:04AM messages near this date
view in the new Beta List Site
Re: [XML-Twig] Problems with Newlines in print | Re: XML::XPath to read multiple files
& XSLT 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
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Robert Inder
Mirod
Tod Harter
Mike Trotman

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved