Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: How to get value of attribute (XPath)? How to get value of attribute (XPath)?To: NULL Date: 10/7/2009 7:14:00 AM I've been trying to return the value of an attribute named "server" but keep getting an XPathSelectionIterator. What do I need to change? The following returns "1" which is what I expected. Console.WriteLine(nav.Evaluate("count(//location[@office='JAC'])")); I'm thinking it should be something like Console.WriteLine(nav.Evaluate("//location[@office='JAC']/@server")); but that doesn't give me the value. thanks LJB | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
