![]() |
![]() | ![]() | ![]() | 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/3/2004 12:27:00 PM "Red Ryder" <redryderridesagain@h...> wrote in message news:2ba9c3d5.0412011651.4f9edbbf@p...... > 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. > Apart from what Martin says.. You cannot put parentheses around a sub call with more than one parameter, that's why you get syntax errors. So either: Call MySub(Param1, Param2) OR MySub Param1, Param2 You do not need to set the selection language with version 4 parser, it only supports XPath anyway. -- Joe (MVP - XML) | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||
|
