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

wolf superpulse.x at gmail.com
Sun Jun 14 21:53:49 PDT 2009


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/bangalore-pm/attachments/20090615/4d2fb7bb/attachment.html>


More information about the Bangalore-pm mailing list