title: Crm 2011 Fetch XMl - Invalid XML issue, how to fix?
body: <p>I am using fetch xml to retieve values from ms crm 2011 entities. 
  it throws <strong>INVALID XML error</strong>, the sample xml is given below:</p>
  
  <pre><code>&lt;fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='true'&gt;
      &lt;entity name='xyz_registrationanswer'&gt;
           &lt;attribute name='xyz_registrationid' /&gt;
           &lt;attribute name='xyz_name' /&gt;
           &lt;filter type='and'&gt; 
              &lt;condition attribute='xyz_name' operator='in' &gt;  
                  &lt;value&gt;Do you want to subscribe to 1 &amp; 2?&lt;/value&gt;         
              &lt;/condition&gt; 
          &lt;/filter&gt; &lt;order attribute='xyz_name' descending='false' /&gt;
      &lt;/entity&gt;
  &lt;/fetch&gt;
  </code></pre>
  
  <p>By invistigating the issue i found the cause which is the <strong>&amp;</strong> sign between 1 and 2:</p>
  
  <pre><code>&lt;value&gt;Do you want to subscribe to 1 &amp; 2?&lt;/value&gt; 
  </code></pre>
  
  <p>1- Can someone help me how to fix this issue?</p>
  
  <p>2- What are other illegal characters so i can handle them?</p>
  
  <p>Regards.</p>