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

sairam pareek mariassai at gmail.com
Sun Jun 14 22:57:30 PDT 2009


Thanks for your replies,

I m happy to be in this group, I tried the given solutions, they are working
fine.

If I have some problem further Ill let you know.

Thanks once again.

On Sun, Jun 14, 2009 at 10:02 PM, simran <simran at tlims.cc> wrote:

> probably best to use the XML::Simple module...
>
> http://search.cpan.org/~grantm/XML-Simple-2.18/lib/XML/Simple.pm<http://search.cpan.org/%7Egrantm/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
>>
>
>


-- 
"It is not how much you do, but how much love you put in the doing."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/bangalore-pm/attachments/20090614/3ab06caf/attachment.html>


More information about the Bangalore-pm mailing list