title: How to write an XML tag with double quotes using command prompt echo command
body: <p>I would like to add the simpliest tag into a file, using a CMD batchfile, but it seems that the double quotes are spoiling the party:</p>
  
  <p>From other StackOverflow posts I am aware of the double quote state machine and the usage of ^" (^ as an escape character). Still I can't make it work:<br/>
  Hereby my attempts (with their results):</p>
  
  <pre><code>C:\&gt;echo &lt;tag variable="value"&gt;  // very naïve
  The syntax of the command is incorrect.
  
  C:\&gt;echo "&lt;tag variable="value"&gt;"  // let's use quotes for delimiting the string
  "&lt;tag variable="value"&gt;"
  
  C:\&gt;echo "&lt;tag variable=^"value^"&gt;" // let's use the escape character
  The system cannot find the path specified.
  
  C:\&gt;echo "&lt;tag variable=^"value^"&gt; // what if the state machine is not switched back?
  The syntax of the command is incorrect.
  
  C:\&gt;echo "&lt;tag variable=^"value"&gt; // desperate people do weird things :-)
  "&lt;tag variable=^"value"&gt;
  </code></pre>
  
  <p>I have also done some tests using the escape character in front of the tag characters &lt; and > (as those have their own significance in CMD) but also there no good results.<br/>
  Also first putting the entry within a variable (<code>set test="..."</code>) does not solve the issue.<br/>
  As mentioned, I am getting desperate. The only thing I want to do is writing this into a text file:</p>
  
  <pre><code>&lt;tag variable="value"&gt;
  </code></pre>
  
  <p>Can anybody help me out here?<br/>
  Thanks in advance</p>