Hello!
I would like to do the following:
Use an XPathExpression to extract a nodeset from either an XmlDocument
or an XPathDocument. I would later like to be able to add any one of
these nodes to an XmlDocument.
Is there a straightforward way to take the XPathNavigator that can be
returned which points to each of the nodes and convert it into an
XmlNode?
Thanks in advance.
Christoph Schittko [MVP] - 21 Oct 2003 02:00 GMT
Nope, unfortunately there is no such thing in this version of the Framework
:(

Signature
HTH
Christoph Schittko [MVP]
Software Architect, .NET Mentor
> Hello!
>
[quoted text clipped - 8 lines]
>
> Thanks in advance.
Oleg Tkachenko - 21 Oct 2003 12:58 GMT
> Is there a straightforward way to take the XPathNavigator that can be
> returned which points to each of the nodes and convert it into an
> XmlNode?
If given XPathNavigator is navigating over XmlDocument, then you can get
underlying XmlNodes via IHasXmlNode interface (see msdn for more info).

Signature
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel