Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Parsing an XML datastructure

by existem (Sexton)
on Dec 14, 2004 at 12:56 UTC ( #414694=note: print w/replies, xml ) Need Help??


in reply to Parsing an XML datastructure

Before I loose any more reputation (whatever that is) here is my solution I worked out all by myself - talk about stupid - what a muppet! ;-)

#!/usr/local/bin/perl -w use XML::Simple; my $xml = XMLin($xmlsource); my @items = @{$xml->{Item}}; foreach my $item (@items) { print "$item->{ProductType}<br/>"; } # prints out all the item names

Thanks, Tom

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://414694]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2022-08-14 07:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?