From: Chris Dunaway on 19 Jan 2010 13:48 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
First
|
Prev
|
Pages: 1 2 Prev: Suggestion about Thread.Suspend() and Thread.Resume() Next: Printing question |