The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
XmlLinkedNode::PreviousSibling Property
.NET Framework (current version)
Gets the node immediately preceding this node.
Assembly: System.Xml (in System.Xml.dll)
The following example displays the last two books.
#using <System.Xml.dll> using namespace System; using namespace System::Xml; int main() { XmlDocument^ doc = gcnew XmlDocument; doc->Load( "books.xml" ); XmlNode^ lastNode = doc->DocumentElement->LastChild; Console::WriteLine( "Last book..." ); Console::WriteLine( lastNode->OuterXml ); XmlNode^ prevNode = lastNode->PreviousSibling; Console::WriteLine( "\r\nPrevious book..." ); Console::WriteLine( prevNode->OuterXml ); }
Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Available since 10
.NET Framework
Available since 1.1
Show: