Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: Parsing XML file for more than 1 child element with attributes

by Cody Pendant (Prior)
on Feb 06, 2008 at 21:43 UTC ( #666681=note: print w/replies, xml ) Need Help??


in reply to Re^2: Parsing XML file for more than 1 child element with attributes
in thread Parsing XML file for more than 1 child element with attributes

Well, I think the reason nobody's helping you is, you haven't shown any of your own code yet.

If you understand how

foreach $node ( keys( %{ $tree->{report}->{node} } ) ) { print "$node:VALUES: $tree->{report}->{node}->{$node}->{values}\n"; }
works, then you should be able to just add an "if" to my code to get what you want. If you don't, or if you don't even know how to do "if", in Perl, you'd better say so.


Nobody says perl looks like line-noise any more
kids today don't know what line-noise IS ...
  • Comment on Re^3: Parsing XML file for more than 1 child element with attributes
  • Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2020-07-08 14:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?