title: How can I reference an XML file in my Visual Studio 2012 project as a data source in my project code?
body: <p>My project includes a combo box with a list of databases for the user to select. The selection determines which database will be contacted later on.</p>
  
  <p>Since databases have odd names, I'd like to give each an intelligible designation to be shown in the combo box's Display Value, with the actual database name hidden in the Value Member property (ie, "Database 1" for "XYZprojDB123"). So I put together an XML file with Display Value / Value Member pairs and added it to my project in Visual Studio, but now I can't link to it in my code. Just writing</p>
  
  <pre><code>XDocument dbList = XDocument.Load("Databases.xml");
  </code></pre>
  
  <p>doesn't work.</p>
  
  <p>This is a Windows application, so I'll want to include this XML file for distribution when I publish. Does anyone know how to make this work?</p>