Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: nodelists and nodesets

by erroneousBollock (Curate)
on Nov 23, 2007 at 03:33 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://652485]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-24 23:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found