From: Chris Dunaway on
On Jan 19, 10:15 am, "Jonathan Wood" <jw...(a)softcircuits.com> wrote:
> Martin Honnen wrote:
> > If you know you are only interested in the first "Vendor" then don't use
> > SelectNodes and check the Count, instead use SelectSingleNode e.g.
>
> > XmlNode vendor =
> > _xml.SelectSingleNode(String.Format("//Vendor[VendorID='{0}']",
> > vendorId));
> > if (vendor != null)
>
> Ah, yes. That makes sense. Thanks!
>
> Jonathan

This link may be helpful to you as well:

http://www.w3schools.com/

It has a good section on XPath

Chris