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

Re: How to get paired values from the nested XML structure?

by vagabonding electron (Hermit)
on Nov 01, 2011 at 19:20 UTC ( #935189=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
            my $amount = $articles[$j]->findvalue('./quantity/text()')//"0
    +";
        print "$unitname;$article;$amount\n";
    }
    
  2. or download this
    Entity A;A3236;554
    Entity A;B9735;386
    ...
    Entity B;D3938;
    Entity B;E5722;
    Entity B;F3596;
    
  3. or download this
    findvalue('./quantity/text()')//"0";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (15)
As of 2015-03-26 20:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:









    Results (595 votes), past polls