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 (1st Example)
C# sample code showing how iterate over nodes in an XML document. private void Iterate1_Click(object sender, System.EventArgs e)
{
Chilkat.Xml xml = new Chilkat.Xml();
xml.LoadXmlFile("companies.xml");
Chilkat.Xml company = xml.FirstChild();
while (company != null)
{
listBox1.Items.Add(company.GetChildContent("name"));
company = company.NextSibling();
}
}
|
Need a specific example? Send a request to support@chilkatsoft.com
© 2000-2010 Chilkat Software, Inc. All Rights Reserved.