title: Can someone help de-bug my "XML Parsing Error: not well-formed" issue with my XML?
body: <p>Before I begin, I have read through the following discussions:</p>
  
  <p><a href="https://stackoverflow.com/questions/6792088/xml-parsing-error-not-well-formed">XML Parsing Error: not well-formed</a></p>
  
  <p><a href="https://stackoverflow.com/questions/1959571/xml-not-well-formed-error">XML not well formed error</a></p>
  
  <p><a href="https://stackoverflow.com/questions/7089718/error-error-parsing-xml-not-well-formed-invalid-token">error: Error parsing XML: not well-formed (invalid token) ...?</a></p>
  
  <p>All of these questions didn't appear to be applicable to my issues.</p>
  
  <p>I have built a php file, with a <code>$xml=simplexml_load_file('somefile.xml');</code> function, for the purpose of building a product displaying, merchant affiliate site.</p>
  
  <p>I then coded a(several) $feed(s), echo, the whole nine yards.</p>
  
  <p>All the XML data is information about specific products (product name, description, price, size, image url's, other keyword relevant data, etc).</p>
  
  <p>En example of one data entry is:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;root&gt;
      &lt;product&gt;
          &lt;productName&gt;Name&lt;/productName&gt;
          &lt;productCode&gt;someCode&lt;/productCode&gt;
          &lt;productDescription&gt;Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.&lt;/productDescription&gt;
          &lt;productSort&gt;someSort&lt;/productSort&gt;
          &lt;productCategory&gt;someCategory&lt;/productCategory&gt;
          &lt;productUrl&gt;http://www.someMerchantUrl.com/someFolderOrCategory/someProduct&lt;/productUrl&gt;
          &lt;productImageUrl01&gt;http://www.someMerchantUrl.com/imageOne.jpg&lt;/productImageUrl01&gt;
          &lt;productImageUrl02&gt;http://www.someMerchantUrl.com/imageTwo.jpg&lt;/productImageUrl02&gt;
          &lt;productImageUrl03&gt;http://www.someMerchantUrl.com/imageThree.jpg&lt;/productImageUrl03&gt;
          &lt;productPrice&gt;£26.50&lt;/productPrice&gt;
          &lt;productPriceSale&gt;&lt;/productPriceSale&gt;
          &lt;deliveryCost&gt;$5.00&lt;/deliveryCost&gt;
          &lt;deliveryMethod&gt;courier&lt;/deliveryMethod&gt;
          &lt;availability&gt;In Stock&lt;/availability&gt;
          &lt;purchaseAgreement&gt;http://www.someMerchantUrl.com/terms-and-conditions.html&lt;/purchaseAgreement&gt;
          &lt;mainColour&gt;blue&lt;/mainColour&gt;
          &lt;secondaryColour&gt;black&lt;/secondaryColour&gt;
          &lt;keyword01&gt;keywordOne&lt;/keyword01&gt;
          &lt;keyword02&gt;keywordTwo&lt;/keyword02&gt;
          &lt;keyword03&gt;keywordthree&lt;/keyword03&gt;
      &lt;/product&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>Everything tested perfectly with sample URL's for the product links, and of their image locations.</p>
  
  <p>The Parsing error popped up only after inserting the actual deep link URL ('click-redirect' coding).</p>
  
  <p>So, the error I get is:</p>
  
  <pre><code>XML Parsing Error: not well-formed
  Location: http://www.someAffiliateWebSite.com/productsXML/MainPageProducts.xml
  Line Number 11, Column 68:
  &lt;productUrl&gt;http://www.awin1.com/cread.php?awinmid=XXXX&amp;awinaffid=XXXXXX&amp;clickref=&amp;p=http%3A%2F%2Fwww.someMerchantWebSite.com%2Fcatalog%2Fproduct.xml%3Fproduct_id%3D2577714%3Bcategory_id%3D2003473&lt;/productUrl&gt;
  ---------------------------------------------------------------------------------^
  </code></pre>
  
  <p><strong>((The affiliate network is Affiliate Window, the merchant and affiliate id's are obviously not X's, and the domains are obviously not what they are here.))</strong></p>
  
  <p>So, by deduction (I think it is deductive reasoning..... anyway) I presume that there is something funny within the Deep linking URL syntax, since it worked fine before I added the 'click-redirect' linking.</p>
  
  <p>I see that it gives me specific information as to the location of the parsing error, but since I am measurably retarded in web development, that is of little use.</p>
  
  <p>So can anyone find the fly in the soup here?</p>
  
  <p>Thanks!</p>
  
  <p>/Brian</p>