title: How can I store and retrieve an XML string?
body: <p>I have a long string.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;GamePlaySession xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
     &lt;selectedFederation&gt;-1&lt;/selectedFederation&gt;
     &lt;selectedComissioner&gt;-1&lt;/selectedComissioner&gt;
     &lt;myCash&gt;0&lt;/myCash&gt;
     &lt;myTokens&gt;0&lt;/myTokens&gt;
     &lt;myLevel&gt;0&lt;/myLevel&gt;
     &lt;shownBlurbCount&gt;0&lt;/shownBlurbCount&gt;
     &lt;isNewPlayer&gt;true&lt;/isNewPlayer&gt;
     &lt;inTutorialMode&gt;true&lt;/inTutorialMode&gt;
     &lt;flavorTutorialClear&gt;false&lt;/flavorTutorialClear&gt;
     &lt;calendarTutorialClear&gt;false&lt;/calendarTutorialClear&gt;
     &lt;resultTutorialClear&gt;false&lt;/resultTutorialClear&gt;
     &lt;storePurchaseTutorialClear&gt;false&lt;/storePurchaseTutorialClear&gt;
     &lt;storeRefreshTutorialClear&gt;false&lt;/storeRefreshTutorialClear&gt;
     &lt;storeTutorialClear&gt;false&lt;/storeTutorialClear&gt;
     &lt;transitionMessageClear&gt;false&lt;/transitionMessageClear&gt;
     &lt;storeCardsBought&gt;0&lt;/storeCardsBought&gt;
     &lt;storePurchases&gt;
         &lt;boolean&gt;false&lt;/boolean&gt;
         &lt;boolean&gt;false&lt;/boolean&gt;
         &lt;boolean&gt;false&lt;/boolean&gt;
     &lt;/storePurchases&gt;
     &lt;newGamePlus&gt;false&lt;/newGamePlus&gt;
     &lt;currentYear&gt;0&lt;/currentYear&gt;
     &lt;currentMonth&gt;0&lt;/currentMonth&gt;
     &lt;numberOfYears&gt;10&lt;/numberOfYears&gt;
     &lt;worldChampCardNumber&gt;0&lt;/worldChampCardNumber&gt;
     &lt;titleChampCardNumber&gt;0&lt;/titleChampCardNumber&gt;
     &lt;tagChampCardNumbers&gt;
         &lt;int&gt;0&lt;/int&gt;
         &lt;int&gt;0&lt;/int&gt;
     &lt;/tagChampCardNumbers&gt;
     &lt;worldChampLastCardNumber&gt;0&lt;/worldChampLastCardNumber&gt;
     &lt;titleChampLastCardNumber&gt;0&lt;/titleChampLastCardNumber&gt;
     &lt;tagChampLastCardNumbers&gt;
         &lt;int&gt;-1&lt;/int&gt;
         &lt;int&gt;-1&lt;/int&gt;
     &lt;/tagChampLastCardNumbers&gt;
     &lt;firstShopCards&gt;false&lt;/firstShopCards&gt;
  </code></pre>
  
  <p>I want to store it inside a column. I am using <code>urlencode</code> as well as <code>mysql_real_escape_string()</code> but it doesn't work. Anyone knows how can I store it?</p>