
Signature
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Hi Dave,
Thanks for posting!
1. I tried to reproduce it, but with my code below, it is working fine. The
object returns "jan".
XmlDocument doc = new XmlDocument();
doc.LoadXml("<Month><jan>231</jan></Month>");
XPathNavigator nav = doc.CreateNavigator();
XPathNavigator n = nav.SelectSingleNode("//Month/jan");
object o = n.Evaluate("name(self::*)");
Could you show me your code that can repro it? Thanks.
2. The SelectSingleNode method does different things from Evaluate method.
SelectSingleNode does an XPath query and returns another XPathNavigator, so
that you can move to another node with it.
However, Evaluate method evaluates an XPath expression and returns result.
It will be converted to an object.
Kevin Yu
Microsoft Online Community Support
============================================================================
==========================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
============================================================================
==========================
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
David Thielen - 11 Jul 2006 02:40 GMT
I swear this wasn't working yesterday - but it work now. I must have types
something wrong without realizing it.

Signature
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
> Hi Dave,
>
[quoted text clipped - 30 lines]
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
Kevin Yu [MSFT] - 11 Jul 2006 03:21 GMT
No problem, Dave. Anyway, it was nice to know that it's working for you.
If you have any questions, please feel free to post them in the community.
Kevin Yu
Microsoft Online Community Support
============================================================================
==========================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
============================================================================
==========================
(This posting is provided "AS IS", with no warranties, and confers no
rights.)