S
H
A
R
E

Saturday, July 02, 2011

XML to Tree Node

XML to Tree Node VB net Visual Studio
XML to Tree Node Screen Shot
This program is demonstrate how to converting XML tag to TreeView node. Written using Visual Studio 2010.
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