예제 #1
0
파일: Program.cs 프로젝트: zanyants/mvp.xml
		static void Main(string[] args)
		{
			CustomerTemplate ct = new CustomerTemplate();
			ct.Customer = BuildCustomer();

			XmlWriterSettings ws = new XmlWriterSettings();
			ws.Indent = true;

			using (XmlWriter writer = XmlWriter.Create(Console.Out, ws))
			{
				ct.Render(writer);
			}

			Console.WriteLine();
		}
예제 #2
0
파일: Program.cs 프로젝트: zanyants/mvp.xml
        static void Main(string[] args)
        {
            CustomerTemplate ct = new CustomerTemplate();

            ct.Customer = BuildCustomer();

            XmlWriterSettings ws = new XmlWriterSettings();

            ws.Indent = true;

            using (XmlWriter writer = XmlWriter.Create(Console.Out, ws))
            {
                ct.Render(writer);
            }

            Console.WriteLine();
        }