title: <?xml version=“1.0” encoding=“UTF-8”?> not <?xml version='1.0' encoding='UTF-8'?>
body: <p>I am using lxml with </p>
  
  <pre><code>tree.write(xmlFileOut, pretty_print = True, xml_declaration = True, encoding='UTF-8'
  </code></pre>
  
  <p>to write out my opened and edited xml file, but I absolutely need to have the xml declaration as </p>
  
  <pre><code>&lt;?xml version=“1.0” encoding=“UTF-8”?&gt; 
  </code></pre>
  
  <p>and NOT </p>
  
  <pre><code>&lt;?xml version='1.0' encoding='UTF-8'?&gt;
  </code></pre>
  
  <p>Now I know they are exactly the same when it comes to xml, but I am dealing with a very tricky customer who absolutely has to have <code>"</code> in the declaration and not <code>'</code>. I have searched everywhere but can't find the answer.</p>
  
  <p>Could I create it and add it in myself to the head of the xml somehow?</p>
  
  <p>Could I tell lxml that this is what I need as an xml declaration?</p>