Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - XPath -VBA (MSXML2 parses won't execute some Xpath strings) - no current context? [Thread Next] Re: XPath -VBA (MSXML2 parses won't execute some Xpath strings) - no current context?To: NULL Date: 12/2/2004 2:53:00 PM Red Ryder wrote: > Initially, I tried to execute an XPath query with the selection > language attribute not specifically set to XPath. (commented out) The > result was that the XPath expression was flagged in parsing; > > Expected token 'EOF' found ":" child -->:<-- :advance > > Set the selection language attribute with a call???. The selection > line execute, however, the list is empty. XPath selections which do > not depend on the current node such as "//*" appear to work. > > A related question is how does one set the current node explicitly? The node is the one you call the selectNodes/selectSingleNode method on, if you call xmlDocument.selectNodes then the XPath is relative to the document node but each node implements the method as well so you can somehow select a node and then call node.selectNodes again to select stuff within that node. -- Martin Honnen http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
