XML to Tree Node Screen Shot |
This the main function for converting XML node to TreeView Node:
Function XmlToNode(ByRef xml As XmlNode) As TreeNode
Dim ret As New TreeNode(xml.Name)
If xml.HasChildNodes Then
For Each i As XmlNode In xml.ChildNodes
ret.Nodes.Add(XmlToNode(i))
Next
End If
Return ret
End Function
This function use recursive algorithm. you can modify the program and then can use to explore the HTML tag, and it will be usefull for some web design.
This Project is available to download. Click HERE
0 comments:
Post a Comment