title: How to add an xml file as a resource to Windows Forms exe
body: <p>I have a Windows forms C# application.
  I want to add an xml file to this .exe
  This xml file must be part of the .exe file.
  How can I do that and how can I access the xml file in the program.</p>
  
  <p>What I have tried is this:</p>
  
  <pre><code>Stream st = Assembly.GetExecutingAssembly().GetManifestResourceStream("CApp.xmlfile.xml");
  StreamReader reader = new StreamReader(st);
  
  doc = XElement.Load(reader);
  </code></pre>
  
  <p>Build Action for xml file is "Embedded Resource"</p>