Re: XML::Simple XMLin

2010-07-28 Thread Jasper2000
Brandon / Erez, Thanks very much for your help. Not sure why, but I did post another message, to say that I'd managed to figure it out, yet the message didn't show up. However, I really do appreciate your comments and willingness to help me. Thanks!! On Jul 28, 6:10 pm, bamcc...@gmail.com (Bra

Re: XML::Simple XMLin

2010-07-28 Thread Jane D.
Actually, I have now figured it out, and it all makes sense! Thanks for your help. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: XML::Simple XMLin

2010-07-28 Thread Brandon McCaig
On Tue, Jul 27, 2010 at 6:31 PM, Jane D. wrote: > The top bit of the XML file looks like this: It would be easier for me to make suggestions if you'd post an entire sample XML document or, better yet, a URL where I could retreive one so that I could test my code before suggesting it to you. :) -

Re: XML::Simple XMLin

2010-07-28 Thread Erez Schatz
First, I urge you to try parsing this doc with a dedicated RSS parser, it will do miracles for your needs. Second, the dumper you print here is not the full document, but one branch, it might be that what you loop over is not an arrayref, or might not work the way you think. Try running a Dumper ov

Re: XML::Simple XMLin

2010-07-28 Thread Jasper2000
Thanks Erez ... However, I did already look at the data in Data:Dumper, and still can't figure out how to access it. Mind you, I have done an identical loop for other XML data, from other sources, and it works fine (even with the element set to 0, which I don't quite get). Mind you, if it's of any

Re: XML::Simple XMLin

2010-07-27 Thread Erez Schatz
On 28 July 2010 01:31, Jane D. wrote: > > I'm basically retrieving an XML file from Digg. I can retrieve the > Digg data okay, but am struggling with trying to process the returned > data with Perl, largely on account with my unfamiliarity with XML > processing, but also because I'm not entirely c