Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Xpath predicate error

Thread Tools

Xpath predicate error
Posts: n/a
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;
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.

Reply With Quote
Martin Honnen
Posts: n/a
      02-24-2007 Removed) wrote:

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

See answer in microsoft.public.xsl.


Martin Honnen
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
xpath: predicate to choose only elements that match a one of a list of values Phantom XML 5 07-07-2008 10:59 PM
XPath: Using the outside context inside a square bracket predicate Wabiloo XML 1 01-25-2008 04:38 PM
XPath predicate problem Ziphims XML 6 01-12-2008 06:13 PM
Specifying predicate queries with XPath? Duncan Smith XML 7 03-22-2007 01:49 PM
XPATH Predicate Syntax question Sabba XML 0 05-09-2006 10:48 AM