View Single Post
Old 10-01-2006, 06:02 AM   #1 (permalink)
jonmon6691
True Techie
 
Join Date: May 2006
Posts: 101
Question ###Perl + XML = How?###

I need to use Perl to take an XML document and get a URL that is in the tag <pic></pic>, there are multiple instances of <pic> eg.
Code:
<root>
<child>
<pic>http://www.somesite.com/image.jpg</pic>
</child>
<child>
<Pic fieldName="Pic" originalElement="img" src="URL HERE" type="field"/>
</child>
</root>
there is also an unknown number of instances and there are other tags that should be ignored. If there is a module in Perl, i don't know what it is or how to use it so if you could give me a link to a comprehensive tutorial, and please, i already tried googleing it and i could not find anything useful.

I also need to download the picture from the urls found in the xml document.

ps i would rather not use re's (b/c i suck at them)
__________________

.:HP Pavillion dv6000:.
1.8 ghtz Intel Core 2 Duo
2GB RAM
120 GB HDD
nVidia Go graphics
Apache 2.2 (looking for a domain name)
jonmon6691 is offline   Reply With Quote