Chilkat HOME ASP Visual Basic VB.NET C# Visual C++ C MFC Delphi FoxPro Java Perl PHP Python Ruby SQL Server VBScript
|
Iteration in XML (3rd Example) C# sample code showing how iterate over nodes in an XML document. private void Iterate3_Click(object sender, System.EventArgs e)
{
Chilkat.Xml xml = new Chilkat.Xml();
xml.LoadXmlFile("companies.xml");
int numChildren = xml.NumChildren;
int i;
for (i=0; i<numChildren; i++)
{
Chilkat.Xml record = xml.GetChild(i);
listBox1.Items.Add(record.GetChildContent("name"));
}
}
|
Need a specific example? Send a request to support@chilkatsoft.com
© 2000-2008 Chilkat Software, Inc. All Rights Reserved.