perl script to parse url from xml URL
Hey guys, I'm trying to simply pull a line (semi-static entry) from an xml file online with a shell script, or perl script.
Basically, I've got a URL that loads an XML file.
From this file I want to pull a text entry:
<blah xml code blah 'http://static.address.com/static_directory/dynamic_filename.123' blah xml code blah>
I would like to do this from a shell or perl script.
I would like to parse the xml file so that it just pulls the http - .123 information and ends there, that's the only information I need.
it will then run a local command on this file.
bash or perl would be wonderful, if anyone has any premades laying around
Thanks in any case!
Last edited by Freaksta; 01-21-2011 at 03:54 PM.
Reason: change preference from bash to bash or perl.