Xpath predicate error

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
 
M

Martin Honnen

{ x=document.Search.Details.value;
var
EmpDetails=myDoc.selectSingleNode("Employee/EmpData[@ID=x]");
document.write(EmpDetails.xml);

See answer in microsoft.public.xsl.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top