XmlTextReader xtr = new XmlTextReader("Dosya3.xml"); while (xtr.Read()) { if (xtr.NodeType == XmlNodeType.Element) Console.WriteLine("{0}", xtr.Name); if (xtr.HasAttributes) { while (xtr.MoveToNextAttribute()) Console.WriteLine("{0}={1}", xtr.Name, xtr.Value); Console.Write("\n"); } } Console.ReadLine();
|