You need to escape the quotes as well or use single quotes around your string:
$result=$tree->findnodes('/language/$language/widget[@ID="$id"]');
In reply to Re^5: language selection via libxml
by hdb
in thread language selection via libxml
by banzai
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |