Write XML document to console

image_pdfimage_print
   

using System;
using System.Xml;

public class HelloXML {
  public static void Main(string [] args) {
    XmlTextWriter writer = new XmlTextWriter(Console.Out);
    writer.WriteStartDocument( );
    writer.WriteElementString("www.kutayzorlu.com/java2s/com", "XML");
    writer.WriteEndDocument( );
    writer.Close( );
  }
}

           
          


This entry was posted in XML-RPC. Bookmark the permalink.