Using Visual C# in Visual Studio 2010 I followed the following example to add the nodes of an XML document to a tree view.
http://support.microsoft.com/kb/317597/en-us
So far this works fine. However the given piece of code in #7 displays all nodes including the values, e.g. when reaching <myNode>2</myNode> the value 2 is also displayed.
How can I change the example so that only all node names excluding their value will be populated to the tree view?