title: XML ATOM to SimpleXML Object losing data
body: <p>Hi, i have a simple problem. When i try to convert an atom XML string to simplexml object or using simplexml_load_data function, it seems to drop many attributes data.. </p>
  
  <p>like in my original string i have</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;feed gd:kind="customsearch#search" xmlns="http://www.w3.org/2005/Atom" xmlns:cse="http://schemas.google.com/cseapi/2010" xmlns:gd="http://schemas.google.com/g/2005" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"&gt;
   &lt;title&gt;Google Custom Search - flower&lt;/title&gt;
   &lt;id&gt;tag:www.googleapis.com,2010-09-29:/customsearch/v1?q=flower&amp;amp;&amp;amp;num=10&amp;amp;start=1&amp;amp;safe=off&lt;/id&gt;
   &lt;author&gt;
    &lt;name&gt;- Google Custom Search&lt;/name&gt;
   &lt;/author&gt;
   &lt;updated&gt;1970-01-16T10:55:22.093Z&lt;/updated&gt;
   &lt;opensearch:Url type="application/atom+xml" template="https://www.googleapis.com/customsearch/v1?q={searchTerms}&amp;amp;num={count?}&amp;amp;start={startIndex?}&amp;amp;lr={language?}&amp;amp;safe={cse:safe?}&amp;amp;cx={cse:cx?}&amp;amp;cref={cse:cref?}&amp;amp;sort={cse:sort?}&amp;amp;filter={cse:filter?}&amp;amp;gl={cse:gl?}&amp;amp;cr={cse:cr?}}&amp;amp;googlehost={cse:googleHost?}&amp;amp;c2coff={?cse:disableCnTwTranslation}&amp;amp;hq={cse:hq?}&amp;amp;hl={cse:hl?}&amp;amp;siteSearch={cse:siteSearch?}&amp;amp;siteSearchFilter={cse:siteSearchFilter?}&amp;amp;exactTerms={cse:exactTerms?}&amp;amp;excludeTerms={cse:excludeTerms?}&amp;amp;linkSite={cse:linkSite?}&amp;amp;orTerms={cse:orTerms?}&amp;amp;relatedSite={cse:relatedSite?}&amp;amp;dateRestrict={cse:dateRestrict?}&amp;amp;lowRange={cse:lowRange?}&amp;amp;highRange={cse:highRange?}&amp;amp;searchType={cse:searchType?}&amp;amp;fileType={cse:fileType?}&amp;amp;rights={cse:rights?}&amp;amp;imgsz={cse:imgsz?}&amp;amp;imgtype={cse:imgtype?}&amp;amp;imgc={cse:imgc?}&amp;amp;imgcolor={cse:imgcolor?}&amp;amp;alt=atom"/&gt;
   &lt;opensearch:Query role="request" title="Google Custom Search - flower" totalResults="98800000" searchTerms="flower" count="10" startIndex="1" inputEncoding="utf8" outputEncoding="utf8" cse:safe="off" cse:cx="g"/&gt;
   &lt;opensearch:Query role="cse:nextPage" title="Google Custom Search - flower" totalResults="98800000" searchTerms="flower" count="10" startIndex="11" inputEncoding="utf8" outputEncoding="utf8" cse:safe="off" cse:cx="0vv1rbg"/&gt;
   &lt;opensearch:totalResults&gt;98800000&lt;/opensearch:totalResults&gt;
   &lt;opensearch:startIndex&gt;1&lt;/opensearch:startIndex&gt;
  </code></pre>
  
  <p>but when i convert it to xml using </p>
  
  <pre><code>        $xml = simplexml_load_string($rs);
          print_r($xml);
  </code></pre>
  
  <p>my output is like below. All the key information like number of searches, total results set is gone..</p>
  
  <pre><code>SimpleXMLElement Object
  (
      [title] =&gt; Google Custom Search - flower
      [id] =&gt; tag:www.googleapis.com,2010-09-29:/customsearch/v1?q=flower&amp;cx=&amp;num=10&amp;start=1&amp;safe=off
      [author] =&gt; SimpleXMLElement Object
          (
              [name] =&gt; Search Engine - Google Custom Search
          )
  
      [updated] =&gt; 1970-01-16T10:55:22.093Z
      [entry] =&gt; Array
          (
              [0] =&gt; SimpleXMLElement Object
                  (
                      [id] =&gt; http://en.wikipedia.org/wiki/Flower
                      [updated] =&gt; 1970-01-16T10:55:22.093Z
                      [title] =&gt; &lt;b&gt;Flower&lt;/b&gt; - Wikipedia, the free encyclopedia
                      [link] =&gt; SimpleXMLElement Object
                          (
                              [@attributes] =&gt; Array
                                  (
                                      [href] =&gt; http://en.wikipedia.org/wiki/Flower
                                      [title] =&gt; en.wikipedia.org
                                  )
  
                          )
  
                      [summary] =&gt; A &lt;b&gt;flower&lt;/b&gt;, sometimes known as a bloom or blossom, is the reproductive structure &lt;br&gt;  found in &lt;b&gt;flowering&lt;/b&gt; plants (plants of the division Magnoliophyta, also called &lt;b&gt;...&lt;/b&gt;
                  )
  </code></pre>