Try something like below,
Private string GetXmlString(string strFile)
{
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(strFile);
StringWriter sw = new StringWriter();
XmlTextWriter xw = new XmlTextWriter(sw);
xmlDoc.WriteTo(xw);
return sw.ToString();
}
Hope this helps...