using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml; namespace 예제_3._7_XmlReader_개체_사용___기타_1 { class Program { static void Main(string[] args) { using(XmlReader reader = XmlReader.Create("data.xml")) { while(reader.Read()) { if (reader.NodeType == XmlNodeType.Element) { Console.WriteLine("---ReadInnerXml 호출 결과---"); Console.WriteLine(reader.ReadInnerXml()); } } } } } }