![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Problem with an XPATH statement in JScript Problem with an XPATH statement in JScriptTo: NULL Date: 7/6/2006 10:34:00 AM
I'm trying to select a node by it's position number in a JScript statement.
However, the below line gives me an error:
myInfoNode2 = xmlCourse.selectSingleNode("position()=3");
The error message is:
Expected token 'eof' found '='.
position()-->=<--3
It apparently doesn't like my equals sign, I tried escaping it with a "\",
but then it says that the expression does not return a DOM node. At least it
is a different error message!
FYI: All this precedes the above statement:
var xmlCourse = new ActiveXObject("Microsoft.XMLDOM")
xmlCourse.async = false
xmlCourse.load("course.xml");
xmlCourse.setProperty("SelectionLanguage", "XPath");
| ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
