title: How to load an XML, defined in the c# startup-project, from a library
body: <p>I tried to look around for a best-practice to load an XML-File from the startup project in a C#-Solution.</p>
  
  <p>I am building a library which should be able to load the following XML from the startup-project which is using the library. If possible the XML should NOT be visible to the enduser.
  The XML-File uses a DTD, so I'm not sure if I could use the app.config to do this. Here an example of such an XML-File</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" standalone="no" ?&gt;
  &lt;!DOCTYPE filter SYSTEM "filters.dtd"&gt;
  
  &lt;filter&gt;
      &lt;controltype-criteria type="Button"&gt;
          &lt;event&gt;TouchDown&lt;/event&gt;
      &lt;/controltype-criteria&gt;
  &lt;/filter&gt;
  </code></pre>
  
  <p>Does anyone have a recommendation how to do this?</p>
  
  <p>Thank you for your reply! :)</p>