sanjay.vaniya 0 Newbie Poster

DataSet ds = new DataSet();
string pattern = @"(</?)(\w+:)";

//[XMLText] is a string variable containing XML downloaded from a WebServices API.
StringReader sr = new StringReader(Regex.Replace(XMLText, pattern, "$1"));                                           
ds.ReadXml(sr);
return ds;
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.