Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

How to get paired values from the nested XML structure?

by vagabonding electron (Hermit)
on Nov 01, 2011 at 14:45 UTC ( #935133=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    <excerpt>
    <unit>
    ...
    </unit>
    
    </excerpt>
    
  2. or download this
    Entity A;A3236;554
    Entity A;B9735;386
    ...
    ...
    Entity B;A1136;1982
    etc.
    
  3. or download this
    use strict;
    use warnings;
    ...
            
        print "$unitname;$art_chain\n";
    }
    
  4. or download this
    my $art_chain;
        if($units[$i]->findvalue('./products/article/quantity')>0)    {
        $art_chain = join('---', split(/\n/, $art));
        }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2015-07-05 07:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls