using System; using System.IO; using System.Xml; public class Reader { public static void Main(String[] args) { XmlTextReader r=new XmlTextReader(new StringReader("")); while(r.Read()) { bool moreAttributes = r.MoveToFirstAttribute(); while (moreAttributes) { bool result = r.ReadAttributeValue(); Console.WriteLine(result); while(result) { Console.WriteLine(r.Value); if(r.NodeType == XmlNodeType.EndEntity) { Console.WriteLine("BROKE"); break; } result = r.ReadAttributeValue(); Console.WriteLine(result); } moreAttributes = r.MoveToNextAttribute(); }Console.WriteLine("READ"); } Console.ReadLine(); } }