title: simplexml_load_string and child nodes
body: <p>I am trying to get the information out of an xml string and view the child nodes in it.  I am using:</p>
  
  <pre><code>'Title' =&gt; $current-&gt;AttributeSets-&gt;children('ns2')-&gt;ItemAttributes-&gt;Title,
  </code></pre>
  
  <p>in an array where $current </p>
  
  <pre><code>$current = $parsed_xml-&gt;ListMatchingProductsResponse-&gt;ListMatchingProductsResult-&gt;Products-&gt;Product;
  </code></pre>
  
  <p>the namespace is ns2 and the children are ItemAttributes and Title.  When I run this I get no information where the title should be.  Here is the response when I run the script:</p>
  
  <pre><code>SimpleXMLElement Object()
  </code></pre>
  
  <p>Can anyone point me in the right direction please?  I have looked at the other posts and have tried to use their examples but they are not working for me.
  Here is the XML:</p>
  
  <pre><code>    &lt;?xml version="1.0"?&gt;
  &lt;ListMatchingProductsResponse xmlns="http://mws.amazonservices.com/schema/Products/2011-10-01"&gt;
  &lt;ListMatchingProductsResult&gt;
  &lt;Products xmlns="http://mws.amazonservices.com/schema/Products/2011-10-01" xmlns:ns2="http://mws.amazonservices.com/schema/Products/2011-10-01/default.xsd"&gt;
  &lt;Product&gt;
  &lt;AttributeSets&gt;
  &lt;ns2:ItemAttributes xml:lang="en-US"&gt;
  &lt;ns2:Title&gt;JavaScript: The Missing Manual&lt;/ns2:Title&gt;
  </code></pre>