Hi

you are using 
<command switch="ac1" ....>
so switch is an xml attribute

to refer to an attribute in xpath you need to use the prefix "@"
it's missing in your java lines.

So instead of
String xpath = "//command[switch='ac1']";
try
String xpath = "//[EMAIL PROTECTED]'ac1']";

should help

regards


Reply via email to