I had not seen the variable in between, sorry. You could do
$result=$tree->findnodes('/language/'.$language.'/widget[@ID="$id"]');
In reply to Re^7: language selection via libxml
by hdb
in thread language selection via libxml
by banzai
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |