php- not printing out the dom nodes . tried .textcontent and .nodevalue
<pre><code>  &lt;?

$file = $DOCUMENT_ROOT. "http://www.soundcloud.com/search?q%5Bfulltext%5D=dubstep";
$doc = new DOMDocument();
@$doc-&gt;loadHTMLFile($file);


$element = $doc-&gt;getElementsByTagName('h3');



echo trim($element-&gt;item(0)-&gt;nodeValue);
echo trim($element-&gt;item(0)-&gt;textContent);

if (!is_null($element)) {
        $content = $element-&gt;nodeValue;

        if (empty($content)) {
            $content = $element-&gt;textContent;
        }

        echo $content . "\n";
    }

?&gt;
</code></pre>

<p>im trying to parse my music off of soundcloud and i think i am creating an arrary and data but it won't print out to the screen?  </p>
