Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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 exploiting the Monastery: (4)
As of 2016-07-26 11:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (234 votes). Check out past polls.