title: how i can add the version and encoding to a xml file using TXMLDocument
body: <p>i want to add the version and encodig to a xml file created with <code>TXMLDocument</code> component</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  </code></pre>
  
  <p>curently i'm doing this</p>
  
  <pre><code>XmlDoc   :=TXMLDocument.Create(nil);
  XmlDoc.Version:='1.0';
  XMLDoc.Encoding:='utf-8';
  </code></pre>
  
  <p>but i receive an acces violation in this line</p>
  
  <pre><code>XmlDoc.Version:='1.0';
  </code></pre>
  
  <p>how i can add the version and encoding?</p>