blog.easyciel.net author="Patrick Rabian" about="c#, sharepoint, biztalk, team system resources" more="news, samples, tips for .NET world's developers !"

Using Xpath queries with MSXML

Wednesday, 30 November 2005 01:10 by prabian

To use Xpath queries with MSXML, don’t forget to set the following propoerty of your xml document object :

xmlDocument.setProperty “SelectionLanguage”, “XPath”

Example :

Set xmlDocument = New DOMDocument40
xmlDocument.Load(”example.xml”);
xmlDocument.setProperty “SelectionLanguage”, “XPath”
Set xmlNode = xmlDocument.selectSingleNode(”//COMPANY/CUSTOMER[substring(@type,1,2) =’FR’]”)

Refer to the microsoft Knowledge base : How To Use XPath Queries in MSXML DOM selectNodes Method

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories:   XML | Web Services
Actions:   E-mail | del.icio.us | Permalink | Comments (0) | Comment RSSRSS comment feed

Related posts

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

January 7. 2009 13:45