title: How to escape characters in XML text when using Echo print to file
body: <p>I am trying to output the following line  to an xml file. </p>
  
  <p>I am using the below command:</p>
  
  <pre><code>echo "&lt;?xml version="1.0" encoding="utf-8"?&gt;" &gt;&gt; MyFile.xml
  </code></pre>
  
  <p>The only issue is that it is including the quotation marks at the begining and end in the file so inside of my file it looks like this:</p>
  
  <pre><code>"&lt;?xml version="1.0" encoding="utf-8"?&gt;"
  </code></pre>
  
  <p>Instead of this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  </code></pre>
  
  <p>But if I try to run the batch file without the first and last quotes it fails and says <code>&gt;&gt; was unexpected at this time.</code></p>
  
  <p>So... those quotation marks are needed for it to work but it then prints those marks... Is there any way to do this? </p>