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