.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

How to delete a particular mesage in in XML file using C#

Posted By: ITRajan     Posted Date: September 23, 2013    Points:5   Category :C#
How to remove "Request #" message only in <message> in XML file using c#?

<?xml version="1.0" encoding="utf-8" ?>

<subject>Design Request System: Request Created: {requestId}</subject>

You have a new Request in the DRS
Request # {requestId}
Project Name {projectName}
Street {Street}
City {City}
State {State}
Zip Code {ZipCode}

DRS Team

Author: rameshbabu             
Posted Date: February 10, 2014     Points: 20   

In C# server side, First Read your XML file then Replace your unwanted message

string ss = XmlFile.Replace(@"Request # ", "");

Best Regards,
Ramesh Babu.S

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend