IHasXmlNode.GetNode Méthode

Définition

Retourne la XmlNode position actuelle.

public:
 System::Xml::XmlNode ^ GetNode();
public System.Xml.XmlNode GetNode();
abstract member GetNode : unit -> System.Xml.XmlNode
Public Function GetNode () As XmlNode

Retours

Pour XmlNode la position actuelle.

Remarques

Le code C# suivant utilise GetNode pour accéder à un nœud sur lequel il XPathNavigator est actuellement positionné.

XmlDocument doc = new XmlDocument();
doc.Load("books.xml");
XPathNavigator nav =  doc.CreateNavigator();
XmlNode node = ((IHasXmlNode)nav).GetNode();
Console.WriteLine(node.LocalName);
//You can edit the returned XmlNode.

S’applique à