Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: does not recognize the contains method

From: "Joe Fawcett" <joefawcett@---------.------>
To: NULL
Date: 2/6/2008 8:02:00 AM



"Roger" <Roger@d...> wrote in message 
news:886A5F6B-85D5-4FC1-A4A4-85EC3B2E02C2@m......
> thanks, that worked.
>
> "Martin Honnen" wrote:
>
>> Roger wrote:
>> > trying to do a wildcard search using the domobject.
>> >
>> > Set xmlNodes = xmlDoc.SelectNodes("//Friend[contains(@Name,'ex')]")
>> >
>> > Doing this in VBA. I have msxml6 selected in my references. But, I get 
>> > an
>> > error that says unknown method.
>>
>> Sounds as if you are not using MSXML 6 but rather MSXML 3. For MSXML 3
>> to use XPath you first need to set
>>    xmlDoc.setProperty "SelectionLanguage", "XPath"
>>
>>
>> -- 
>>
>> Martin Honnen --- MVP XML
>> http://JavaScript.FAQTs.com/
>>
As suspected, although you were referencing version 6.0 you were not using 
it.

-- 

Joe Fawcett (MVP - XML)
http://joe.fawcett.name 



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