Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML Strings and C# \n\r \t

Status
Not open for further replies.

Badgers

Programmer
Nov 20, 2001
187
US
Hi,

I am loading an xml file which results in the following string.

<AgentProductivity UseACDGroupID=\"true\"><EmployeeSelector>\r\n\t\t{|Employees|}

Further in the processinf this forms the input request into a webservice call.

The problem is the special characters, I have used the following:

xml = xml.Replace("\n", "").Replace("\r", "").Replace("\t", "");
xml= xml.Replace(@"\", "");

But when replacing '\' with space it doesn't work.

Is there a more elegant way to do this....?

Thanks in advance.

 
But when replacing '\' with space it doesn't work.
What do you mean it doesn't work? Do you mean the replace isn't working, or the call to the websrevice?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top