Saturday, May 19, 2012

Return the value for the specific attribute using XPathNodeIterator

November 1, 2009 by · Leave a Comment 

I will use the following XML document in the example below. <? xml version="1.0" encoding="utf-8" ?> < users > < user FirstName ="Tom" LastName ="Adams" Age ="23" /> < user FirstName ="Jhon" LastName ="Brams" Age ="17" /> < user FirstName ="Bill" LastName ="Smith" Age ="33" /> </ users > The code prints out all the [...]