If user types in file that is not present, inform and ask to retype file name
<p>So I have a prompt that asks the user to type in the location of a file. How do I make it so if the file is not there, the program reasks the user for the file location? Here is my current code. I have it in the original form, since I was messing around with it. I was getting sorta close, but no cigar. Thanks in advance!</p>

<p>edit: So, if a user types in c:/file.xml and it should be c:/file32.xml it will crash. How do I make it ask user to try again?</p>

<pre><code>static void Main(string[] args)
    {
        //asks user for location of the XML file
        Console.WriteLine("Enter location of XML file and XML file name please. Example - c:/xmlfile.xml");
        //XML files becomes "xmlfile"
        string xmlfile = Console.ReadLine();


        //takes xmlfile and runs it through XPATH
        string fileName = xmlfile;
        XPathDocument doc = new XPathDocument(fileName);
        XPathNavigator nav = doc.CreateNavigator();

        //Compile a standard XPath expression
        //Selects all of the names
        XPathExpression expr;
        expr = nav.Compile("/zabbix_export/templates/template/items/item/name | /zabbix_export/templates/template/items/item/description");
        XPathNodeIterator iterator = nav.Select(expr);
</code></pre>
