[Bangalore-pm] Please help me in Parsing KML file in perl using regular expression.(its urgent)

simran simran at tlims.cc
Sun Jun 14 22:02:55 PDT 2009


probably best to use the XML::Simple module...

http://search.cpan.org/~grantm/XML-Simple-2.18/lib/XML/Simple.pm

2009/6/15 wolf <superpulse.x at gmail.com>

> Hey,
>
> I used your KML file ( renamed it of course ):
>
> cat test.kml | perl -ne ' print "$1: $2\n " if
> m!<(longitude|latitude)\s*?>\s*?([0-9\.]+)\s*?!'
>
> Hope this helps,
>
> Cheers,
> V
>
>
> 2009/6/14 sairam pareek <mariassai at gmail.com>
>
>> Hello everyone.
>>
>> I have a kml file, and struggling to write a perl script to parse its
>> value between tags, this is my first task.
>> and the second is to update the value between the tag in the postgresql
>> database table. I m attaching the KML file, Please find the attachment. (I
>> want to parse the longitude, latitude vlaues in these)
>>
>>                                                                 Please
>> help me, its urgent. Waiting for your replies. Hoping for great help from
>> you guys. I wanted to use regular expression for this. I found this group on
>> orkut.
>>                                       Thanks in advance.
>>
>> Regards,
>> Sairam
>>
>> --
>> "It is not how much you do, but how much love you put in the doing."
>>
>> _______________________________________________
>> Bangalore-pm mailing list
>> Bangalore-pm at pm.org
>> http://mail.pm.org/mailman/listinfo/bangalore-pm
>>
>
>
> _______________________________________________
> Bangalore-pm mailing list
> Bangalore-pm at pm.org
> http://mail.pm.org/mailman/listinfo/bangalore-pm
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/bangalore-pm/attachments/20090615/f188e676/attachment.html>


More information about the Bangalore-pm mailing list