I tried to convert a hashtable to XML like this, but it didn't work:
var jsonArray = new List<Hashtable>();
XmlNode xml = JsonConvert.DeserializeXmlNode("{\"Row\":" + jsonArray + "}",
"BiddingHistory");
I tried to convert a hashtable to XML like this, but it didn't work:
var jsonArray = new List<Hashtable>();
XmlNode xml = JsonConvert.DeserializeXmlNode("{\"Row\":" + jsonArray + "}",
"BiddingHistory");
Thank you for your contributions l ended up converting the hash table into a datatable then from a Data table to xml.
using (StringWriter sw = new StringWriter())
{
dataTable.WriteXml(sw);
xml = sw.ToString();
xml = xml.Replace("DocumentElement", "ArrayOfDataEDI");
}