The below code works and is used to display the Node address of a xml file to a treeview, but it will also pick up all comments within the xml because they also begin with <!-- and end with --> and also the xml header is seen <?xml version="1.0" encoding="utf8"?> is there any way i can avoid this ?
Also i would like to add the nodes "id" if it contains one to the treeview, is this posible
<Section6 Name="Not Used" id ="0,0006" Label="Full Description">
Also i would like to add the nodes "id" if it contains one to the treeview, is this posible
<Section6 Name="Not Used" id ="0,0006" Label="Full Description">
Code:
Private Function FormatName(ByVal node As XmlNode) As String
Dim fullName As String = "<" & node.Name
If node.InnerText < "" Then
fullName += ">" & node.InnerText & "</" & node.Name & ">"
Else
fullName += ">"
End If
Return fullName
End Function