Possible bug in Xpath API/eval function?

2004-07-09 Thread Rick Bullotta
Seems that the eval() function in the CachedXPathAPI object returns an incorrect result if the result is a nodeset/nodelist. It appears to always return "one node short". If the Xpath expression would evaluate to a nodeset of 60 nodes, the resulting XNodeSet only has 59 when cast to

eval function

2001-10-01 Thread Shruti Ahuja
Hi, i am evaluating an XPath Query using the function XPathAPI.eval(ctxNode,szQuery) where ctxNode is the context node and szQuery is the XPath Query . If ctxNode is an attribute node , i get a null exception. Pls let me know as to what type of nodes can be passed as context Node to this function

eval function

2001-09-12 Thread Shruti Ahuja
node here is Does this eval function has a limitation that the Context Node can only be an element node or a text node ? Thanks. Shruti.