Why do you need to store entire XML in a variable? Instead you can create a function to read XML File. If you still want to do so, use:
XDocument doc = XDocument.Load("XMLFile1.xml" );
[Update]
XDocument doc = MyFunction();
private XDocument MyFunction()
{
return XDocument.Load("XMLFile1.xml" );
}
--Amy