Hi;
Two questions. I have an XPathNavigator object where it's OuterXml property
is "<jan>231</jan>" and I am trying to write an xpath statement that will
return the "jan".
XPathNavigator nav = ...;
1) I can do nav.Evaluate("name(parent::*)"); and get "month". But if I do
nav.Evaluate("name(self::*)"); I get "" returned. Shouldn't I get "jan"?
2) This is for code that can be passed random xpath statements. For some it
seems I need to call nav.SelectSingleNode(xpath) and for some (the name()
example) nav.Evaluate(). Is there any way to have a single call that handles
any xpath?
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com