title: How to hold on to a Simple XML object Variable
body: <p>I am getting response from service as a simple xml object of form<br/></p>
  
  <pre><code>Array
  (
      [result] =&gt; Array
          (
              [0] =&gt; Array
                  (
                      [link] =&gt; SimpleXMLElement Object
                          (
                              [0] =&gt; LINK
                          )
  
                      [snippet] =&gt; Teaser 
                      [fragment] =&gt; foo
  </code></pre>
  
  <p>I tried assigning this to a session variable, cache table(drupal) global variable , but am not able to get the actual object later, I get empty values or invalid object.</p>