System.Xml.XmlNode categoryNode = null;
System.Xml.XmlTextReader xmlRead = new System.Xml.XmlTextReader(@"e:/Deneme1.xml");
System.Xml.XmlDocument xmlDoc = new System.Xml.XmlDocument();
xmlDoc.Load(xmlRead); //Xml dökümanını dolduruyoruz
foreach (System.Xml.XmlNode node in xmlDoc.ChildNodes)
{
if (node.Name == "ILANLAR")
{
categoryNode = node;
string content = "";
foreach (System.Xml.XmlElement a in categoryNode)
{
content += "
+ ">
"
+ Convert.ToString(a.ChildNodes[2].InnerXml)
+ "
"
+ Convert.ToString(a.ChildNodes[3].InnerXml) + "
";
}
Literal1.Text = content;