XmlLinkedNode::NextSibling Property
.NET Framework (current version)
Gets the node immediately following this node.
Assembly: System.Xml (in System.Xml.dll)
The following example displays the first two book nodes.
#using <System.Xml.dll> using namespace System; using namespace System::IO; using namespace System::Xml; int main() { XmlDocument^ doc = gcnew XmlDocument; doc->Load( "books.xml" ); // Display the first two book nodes. XmlNode^ book = doc->DocumentElement->FirstChild; Console::WriteLine( book->OuterXml ); Console::WriteLine(); Console::WriteLine( book->NextSibling->OuterXml ); }
Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Available since 10
.NET Framework
Available since 1.1
Show: