Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: nodelists and nodesets

by erroneousBollock (Curate)
on Nov 23, 2007 at 03:33 UTC ( #652485=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $xp = XML::XPath->new(filename => $file);
    $plantdata->{nodeset} = $xp->find('//loop_device[@loop_number="1"]');
    
  2. or download this
    if ($devicetype eq "complex") {
      $seachstring = sprintf "//loop_device[@devicename=\"%s\"]/subdevice"
    +, $devicename;
      $subdevice = $xp->find($searchstring);
    }
    
  3. or download this
    $subdevice = $device->find('/subdevice');

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2014-12-26 00:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (163 votes), past polls