Altova Mailing List Archives

Re: using XPath methods with DOM

From: "Chris Barber" <chris@----------.--.--.------>
Date: 4/14/2004 5:20:00 PM
You may have to set the XMLDOM property:

XMLDOM.setProperty("SelectionLanguage", "XPath")

in order to use all of the XPath functionality.


"slycaper" <sly_caperNOSPAM@y...> wrote in message
Also....If I specify the path directly

i.e. xmlnode := DOMObj.selectNode('this/is/my/path');

then it works fine.

This doesn't work -> xmlnode :=

"slycaper" <sly_caperNOSPAM@y...> wrote in message
> Hello,
> For some reason I cannot use XPath methods through DOM. I've initialized
> COM interface correctly (I'm using a visual component in Delphi for this)
> and I'm trying to use the "last()" method in the XPath expression and when
> it tries to execute this method I receive an "Unknown Method (->last()<-)
> error. I believe I had this working before but now I'm starting to wonder
> it was really working before or not. Should you be able to use these
> methods? I thought you could.
> Thanks


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 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.