[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] [OT] Which Parser is "best"


Markus,

Parse::RecDecent & any of the numerous perl XML modules (XML::Simple being
my most often used choice) are powerful modules and could probably get the
job done for you, while teaching you plenty along the way..

However, if you want the simplest, most straight forward job for the tool
then you'll want to take a look at HTML::TokeParser or possible
HTML::TokeParser::Simple. Both modules allow you to quickly and efficiently
zip through an html file and extract specific elements and their attributes.

If you need a hand with the syntax of either of them, give me a shout, I'll
be glad to help you out.


Steve Comrie

> I want to set up a C::A for manipulating mapfiles for the UMN
> mapserver (http://mapserver.gis.umn.edu) with html forms. The mapfiles
> are in the following form (just a cutout):
>
> My only approach with parsing files like this is with regexps, but
> maybe this is not the best way as those mapfiles can be several hundred
> lines long.


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.