R
raymon2683
Hi
i 'm new to xpath , i used it to naviguate through an Xml document,
since it's much easier.
But a got a problem with the predicate:
i have a web page that is supposed to enable user to find an
element(Employee Details) in an xml file and it's child by giving
either the Id or Name, through a text field .
this is the code:
if (document.Search.Type.checked="Id" )
{ x=document.Search.Details.value;
var
EmpDetails=myDoc.selectSingleNode("Employee/EmpData[@ID=x]");
document.write(EmpDetails.xml);
return;
}
The xpath predicate seems not to be able to get the value of the text
field "Details".
may you help me to get it through.
thanks
i 'm new to xpath , i used it to naviguate through an Xml document,
since it's much easier.
But a got a problem with the predicate:
i have a web page that is supposed to enable user to find an
element(Employee Details) in an xml file and it's child by giving
either the Id or Name, through a text field .
this is the code:
if (document.Search.Type.checked="Id" )
{ x=document.Search.Details.value;
var
EmpDetails=myDoc.selectSingleNode("Employee/EmpData[@ID=x]");
document.write(EmpDetails.xml);
return;
}
The xpath predicate seems not to be able to get the value of the text
field "Details".
may you help me to get it through.
thanks