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 methodTo: NULL Date: 2/2/2008 12:53:00 PM
"Roger" <Roger@d...> wrote in message
news:EA155AF0-96AF-4AEA-8075-86DEBF02EA81@m......
> 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. Searched google and everyone says to do
> wildcard searches this way. If I just search for 1 item like
>
> Set xmlNodes = xmlDoc.SelectNodes("//Friend[@Name='ex']")
>
> it finds the node. but wildcard searches is not working for me. Any help
> would be appreciated. Thanks.
>
Looks like it should work. Can you show how you create the DomDocument?
--
Joe Fawcett (MVP - XML)
http://joe.fawcett.name
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
