The Output should be in xml format using c# code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • surya926
    New Member
    • Jun 2007
    • 2

    #1

    The Output should be in xml format using c# code

    Hello

    I am loading one input xml file and after manipulating the xml file the data should update in that xml file and returns the updated xml file as a output.
    Here my problem is i am using windows application and using c# coding,
    the output is showing in command prompt and it is not in proper xml format,i want to be display the output results in proper xml format.
    Here my requirement is i want to display the xml file in proper format,
    or the output should diplay in webbrower or in seperate xml file,can you tell me how can i do that,
    my code is as follows
    string fileName = @"C:\Documen ts and settings\Admini strator\Desktop \xmlfiles\Polic yCancel.xml";
    CommissionCalcu lation.Commissi onCalculation testobj = new EPAS.Commission Calculation.Com missionCalculat ion();
    XmlDocument doc = new XmlDocument();
    doc.Load(fileNa me);
    string temp = testobj.Process CommissionCalcu lation(doc.Oute rXml);
    Console.WriteLi ne(temp);
    Console.ReadLin e();

    thanks & regards
Working...