Once you get rid of the "~" and get the file path right, check whether the File exists before you try to read it, and do something appropriate if it does not exist:
string YourFilePath = @"C:/SomeDirectory/SomeFile.xml";
if(! File.Exists(YourFilePath))
{
throw new FileNotFoundException("the XML file does not exist");
}