Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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 taking refuge in the Monastery: (8)
As of 2014-09-22 07:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (182 votes), past polls