Click here to Skip to main content
16,021,172 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

i have a string like below

"<purchaseorder xmlns="http://schemas.datacontract.org/2004/07/Varsun.ERP.POS.Entities" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" z:id="i1">"

i want to remove below string in above

xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/"

Note: above string look like xml format.

Thanks in advance
Kiran U
Posted
Comments
Sergey Alexandrovich Kryukov 20-Jun-14 0:51am    
With, XML, use .NET FCL XML classes, not string manipulations. If your first example of string is the empty string (never us this literal, by the way, use string.Empty), you cannot remove it from anywhere. And what's wrong with reading MSDN documentation on System.String class?
—SA

1 solution

Can you please give some more details.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900