Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: DOM / XPath / Reverse axis? [Thread Next] Re: DOM / XPath / Reverse axis?To: NULL Date: 5/2/2007 5:24:00 PM What's confusing though is that internally SelectSingleNode just calls selectNodes and returns the first node in the list. I think it's to do with the fact that you have a position predicate in the XPath though. I will try a few tests to try and sort it out. -- Joe Fawcett (MVP - XML) http://joe.fawcett.name "Francesca Baslen" <francesca.baslen@g...> wrote in message news:4638a41c$0$15956$426a74cc@n...... > Joe Fawcett was caught writing: >> If you use SelectSingleNode on a reverse axis it gets the closest node to >> the context. If you use SelectNodes you then have a NodeList which >> contains the nodes in document order. >> > Hello Joe, > Thanks for your answer... but according to my tests (see my previous > post), the behaviour is precisely opposite of what you say: > with SelectNodes I get a node list that follows the reverse axis order > starting from the context node, whereas SelectSingleNode selects the first > node in the document order. > Strange! > F | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
