Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Parsing an XML datastructure

by existem (Sexton)
on Dec 14, 2004 at 12:56 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2024-04-18 13:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found