Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 10-01-2006, 02:02 AM   #1 (permalink)
 
True Techie

Join Date: May 2006

Posts: 101

jonmon6691

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)
__________________
<small>
.: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)
</small>
jonmon6691 is offline  
Old 10-01-2006, 06:01 PM   #2 (permalink)
 
True Techie

Join Date: May 2006

Posts: 101

jonmon6691

Default

ive herd about XML::parser but i dont have a clue how to use it
__________________
<small>
.: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)
</small>
jonmon6691 is offline  
Old 10-03-2006, 01:53 AM   #3 (permalink)
 
True Techie

Join Date: May 2006

Posts: 101

jonmon6691

Default

Wgas going on! is this forum dead! I've tried CPAN but im confused on how to use XML:arse is there ont that will create simple hashes or arrays or something that outlines the data in the xml doc.
__________________
<small>
.: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)
</small>
jonmon6691 is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On