Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: does not recognize the contains method [Thread Next] Re: does not recognize the contains methodTo: 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
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
