Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XPath -VBA (MSXML2 parses won't execute some Xpath strings) - no current context?

From: Martin Honnen <mahotrash@-----.-->
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/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent