What module should I use for this: SOAP, XML?
- From: kzembowe@xxxxxxxxxx (Kevin Zembower)
- Date: Mon, 12 Mar 2007 14:43:55 -0400
I'm trying to extract a single variable from a page like
http://www.weather.gov/data/current_obs/KDMH.xml. This is the National
Weather Services current observations for Baltimore's Inner Harbor. I'm
just interested in the data enclosed by <temp_f> tags, the current
temperature. I just want to get this value and output it. I investigated
SOAP::Lite, but this seems to need a wsdl file or remote procedure
calls, which the NWS doesn't seem to provide. I also looked at
XML::Simple, but this looks like I have to combine it with something
like LWP to request the page and process it. Or, do I just get the page
with LWP and write a script to parse it? Am I overlooking a simple
solution?
I'd appreciate any suggestions on how to get this data most easily.
Extra bonus points given for a one-liner.
Thanks in advance for all your advice and suggestions.
-Kevin
Kevin Zembower
Internet Services Group manager
Center for Communication Programs
Bloomberg School of Public Health
Johns Hopkins University
111 Market Place, Suite 310
Baltimore, Maryland 21202
410-659-6139
.
- Follow-Ups:
- Re: What module should I use for this: SOAP, XML?
- From: Jenda Krynicky
- Re: What module should I use for this: SOAP, XML?
- From: Chas Owens
- Re: What module should I use for this: SOAP, XML?
- Prev by Date: Re: Removing blank lines
- Next by Date: Re: Removing blank lines
- Previous by thread: Removing blank lines
- Next by thread: Re: What module should I use for this: SOAP, XML?
- Index(es):