{"id":3111,"date":"2004-07-05T11:03:00","date_gmt":"2004-07-05T01:03:00","guid":{"rendered":"http:\/\/new.radio-active.net.au\/web3\/more-xml-code\/"},"modified":"2014-10-10T13:14:01","modified_gmt":"2014-10-10T02:14:01","slug":"more-xml-code","status":"publish","type":"post","link":"http:\/\/www.radio-active.net.au\/web3\/3111","title":{"rendered":"More XML code"},"content":{"rendered":"<p>OK&#8230; I have some more code for my XML project. It still needs to be modified, but the idea is to create a usable user interface. I think I found this code on <a href=\"http:\/\/msdn.microsoft.com\/\">MSDN<\/a> but I cannot really remember. It was a month or two back, and is actually code from netAPRS. <\/p>\n<p><code><\/p>\n<pre>\n<br \/>    Private Sub LoadTreeViewFromXmlFile(ByVal file_name As _\n<br \/>        String, ByVal trv As TreeView)\n<br \/>        ' Load the XML document.\n<br \/>        Dim xml_doc As New XmlDocument\n<br \/>        xml_doc.Load(file_name)\n<br \/>\n<br \/>        ' Add the root node's children to the TreeView.\n<br \/>        trv.Nodes.Clear()\n<br \/>        AddTreeViewChildNodes(trv.Nodes, _\n<br \/>            xml_doc.DocumentElement)\n<br \/>    End Sub\n<br \/>    ' Add the children of this XML node \n<br \/>    ' to this child nodes collection.\n<br \/>    Private Sub AddTreeViewChildNodes(ByVal parent_nodes As _\n<br \/>        TreeNodeCollection, ByVal xml_node As XmlNode)\n<br \/>        For Each child_node As XmlNode In xml_node.ChildNodes\n<br \/>            ' Make the new TreeView node.\n<br \/>            Dim new_node As TreeNode = _\n<br \/>                                parent_nodes.Add(child_node.Attributes.Item(0).Value)\n<br \/>            new_node.Tag = child_node.Attributes.Item(1).Value\n<br \/>            AddTreeViewChildNodes(new_node.Nodes, child_node)\n<br \/>            If new_node.Nodes.Count = 0 Then _\n<br \/>                new_node.EnsureVisible()\n<br \/>\n<br \/>\n<br \/>            ' If this is a leaf node, make sure it's visible.\n<br \/>        Next child_node\n<br \/>    End Sub\n<br \/><\/pre>\n<p><\/code><br \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>OK&#8230; I have some more code for my XML project. It still needs to be modified, but the idea is to create a usable user interface. I think I found this code on MSDN but I cannot really remember. It &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"http:\/\/www.radio-active.net.au\/web3\/3111\"> <span class=\"screen-reader-text\">More XML code<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5cfmK-Ob","_links":{"self":[{"href":"http:\/\/www.radio-active.net.au\/web3\/wp-json\/wp\/v2\/posts\/3111"}],"collection":[{"href":"http:\/\/www.radio-active.net.au\/web3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.radio-active.net.au\/web3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.radio-active.net.au\/web3\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/www.radio-active.net.au\/web3\/wp-json\/wp\/v2\/comments?post=3111"}],"version-history":[{"count":0,"href":"http:\/\/www.radio-active.net.au\/web3\/wp-json\/wp\/v2\/posts\/3111\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.radio-active.net.au\/web3\/wp-json\/wp\/v2\/media?parent=3111"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.radio-active.net.au\/web3\/wp-json\/wp\/v2\/categories?post=3111"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.radio-active.net.au\/web3\/wp-json\/wp\/v2\/tags?post=3111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}