Hi,
Try this:
{
xmlDoc.Load(strFile);
}
xmlDoc.WriteTo(xw);
HTH
You can also do that:
XDocument xDoc = XDocument.Load("yourFile.xml"); string xmlString = xDoc.ToString();