title: Using XMLWriter to create a custom header in C#
body: <p>I'm fairly new to XML and very new to using the XMLWriter object. I've been successful in using it to write a "Well Formed" XML file, but after many failed attempts to create the needed header, below, I've decided to come here for some insight.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; 
  &lt;!DOCTYPE IDMS-XML SYSTEM "http://eclipseinc.com/dtd/IDMS-XML.dtd"&gt; 
  &lt;IDMS-XML&gt;
  ....
  </code></pre>
  
  <p>Here's the beginning of my code (very standard):</p>
  
  <pre><code>using (XmlWriter xmlWriter = XmlWriter.Create("SendXML.xml"))
  {
      xmlWriter.WriteStartDocument();
      ....
  </code></pre>
  
  <p>I've tried using things like xmlWriter.WriteString() to force it in, but that has been unsuccessful for me. Thanks for any and all insight.</p>