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