title: PHP generated XML occasionally missing closing "<"
body: <p>I have a simple php script that pulls data from MySql and builds a feed, in this case for Amazon.   </p>
  
  <p>It generates the data correctly, but every 300-400 lines or so, it generates an isolated XML error where the closing "&lt;" is missing.  For example, here is a piece of my output that is not outputting the "&lt;" on the closing tag for Fulfillment Latency.  Sometimes it will occur under sku, quantity or update.  It will always be the "&lt;" on the closing tag.  </p>
  
  <pre><code>&lt;Message&gt;
  &lt;MessageID&gt;36&lt;/MessageID&gt;
  &lt;OperationType&gt;Update&lt;/OperationType&gt;
  &lt;Inventory&gt;
  &lt;SKU&gt;NRS10111&lt;/SKU&gt;
  &lt;Quantity&gt;2&lt;/Quantity&gt;
  &lt;FulfillmentLatency&gt;1/FulfillmentLatency&gt;
  &lt;/Inventory&gt;
  &lt;/Message&gt;
  </code></pre>
  
  <p>Here is part of the code (within a mysql_fetch_array loop) used to generate the XML, :</p>
  
  <pre><code>$myXML.=
  '&lt;Message&gt;
  &lt;MessageID&gt;'.$counter.'&lt;/MessageID&gt;
  &lt;OperationType&gt;Update&lt;/OperationType&gt;
  &lt;Inventory&gt;
  &lt;SKU&gt;'.$sku.'&lt;/SKU&gt;
  &lt;Quantity&gt;'.$quantity.'&lt;/Quantity&gt;
  &lt;FulfillmentLatency&gt;1&lt;/FulfillmentLatency&gt;
  &lt;/Inventory&gt;
  &lt;/Message&gt;';
  
  $counter++
  </code></pre>