public static void Run()
{
// The following method shows how to use the NodeType enumeration.
UseNodeType();
// The following method shows how to access the parent node.
GetParentNode();
// The following method shows that when you create any node, it requires a document that will own the node.
OwnerDocument();
// Shows how to extract a specific child node from a CompositeNode by using the GetChild method and passing the NodeType and index.
EnumerateChildNodes();
// Shows how to enumerate immediate children of a CompositeNode using indexed access.
IndexChildNodes();
// Shows how to efficiently visit all direct and indirect children of a composite node.
RecurseAllNodes();
// Demonstrates how to use typed properties to access nodes of the document tree.
TypedAccess();
// The following method shows how to creates and adds a paragraph node.
CreateAndAddParagraphNode();
}
public static void UseNodeType()