title: XML in C# - Read from Resources, Manipulate and Display
body: <p>I'd like to do the following and can't find an elegant way:</p>
  
  <ol>
  <li>Read an XML template into a <code>System.Xml.XmlDocument</code>  </li>
  <li>Populate it with data from my UI  </li>
  <li>Transform it with an <code>XSLT</code> I've written  </li>
  <li>Apply a <code>CSS</code> Stylesheet  </li>
  <li>Render it to a <code>WebBrowser</code> control </li>
  </ol>
  
  <p>I'm currently reading it from a file on disk, populating it, then saving it back out to disk after populating it. I reference the <code>XSLT</code> in the template, and the <code>CSS</code> in the <code>XSLT</code> and then use the <code>WebBrowser.Navigate([filename])</code> method to display the XML file.</p>
  
  <p>Obviously, when I come to deploy this app, it'll break horribly as the file won't exist on disk, and I won't be able to reference the <code>XSLT</code> and <code>CSS</code> files in the <code>XML</code> file as they'll be resources. I'm planning to include the template as a resource, but can't find a neat way to proceed from there.</p>
  
  <p>Any help much appreciated</p>