in reply to Re^6: language selection via libxml
in thread language selection via libxml

I had not seen the variable in between, sorry. You could do

$result=$tree->findnodes('/language/'.$language.'/widget[@ID="$id"]');

Replies are listed 'Best First'.
Re^8: language selection via libxml
by tangent (Parson) on Jan 20, 2014 at 13:34 UTC
    I added that to the test script I have below but it returned no results.

      And another one missed...

      $result=$tree->findnodes('/language/'.$language.'/widget[@ID="'.$id.'" +]');