public string RemoveUnWantedCharsfromXml(string XmlFile)
{
string Xml = string.Empty;
Regex regex = new Regex(@"-[0-9]+-", RegexOptions.IgnoreCase);
if (regex.IsMatch(XmlFile))
Xml = regex.Replace(XmlFile, String.Empty);
return Xml;
}
san i couldn;t use method bcuz it kept giving me error in String.Join
The best overload method is string[]
tan_vision_1...
Participant
1178 Points
413 Posts
Re: Remove Certain Text from Xml
Jan 07, 2012 07:10 AM|LINK
Made New Method and it Worked
public string RemoveUnWantedCharsfromXml(string XmlFile) { string Xml = string.Empty; Regex regex = new Regex(@"-[0-9]+-", RegexOptions.IgnoreCase); if (regex.IsMatch(XmlFile)) Xml = regex.Replace(XmlFile, String.Empty); return Xml; } san i couldn;t use method bcuz it kept giving me error in String.Join The best overload method is string[]