Chilkat HOME ASP Visual Basic VB.NET C# Visual C++ C MFC Delphi FoxPro Java Perl PHP Python Ruby SQL Server VBScript
|
Unzip XML Sub-Trees VB.NET sample code showing how to Unzip sub-trees within an XML document. ' Load an XML file that has Zipped data. Unzip it on-the-fly and use it.
' This example lists company names and addresses in a listbox.
Private Sub Button10_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button10.Click
Dim xml As New Chilkat.Xml()
Xml.LoadXmlFile("zipped.xml")
ListBox1.Items.Clear()
Dim b As Boolean
b = xml.FirstChild2()
While (b)
' Unzip the sub-tree.
xml.UnzipTree()
ListBox1.Items.Add(xml.GetChildContent("name"))
ListBox1.Items.Add(xml.GetChildContent("address"))
b = xml.NextSibling2()
End While
End Sub
Important: The download for this
example does not contain the ChilkatDotNet.dll which |
Need a specific example? Send a request to support@chilkatsoft.com
© 2000-2007 Chilkat Software, Inc. All Rights Reserved.