Parseing XML PHP 4.3.0+
<p>I am trying to determine whether the function domxml_open_mem and xpath_new_context is available under version PHP V4.3.0 or not.  I am using IIS7 under windows 7.</p>

<p>I am reading the document from <a href="http://www.php.net/manual/en/function.domxml-open-mem.php" rel="nofollow">http://www.php.net/manual/en/function.domxml-open-mem.php</a>
it seemed like the the those functions are available these version.</p>

<p>I've tried to test this under multiple PHP versions from 4.1.2 to 4.3.0 and the results are those function are not available.</p>

<pre><code>if (function_exists('domxml_open_mem')) {
    echo "Function is available.&lt;br /&gt;\n";
} else {
    echo " Function is not available.&lt;br /&gt;\n";
}
</code></pre>

<p>Any ideas?
My goal is to parse the value from the xml from the string below</p>

<pre><code>$xml_String="&lt;xml&gt;&lt;Fields&gt;&lt;Header&gt;aa&lt;/Header&gt;&lt;Header&gt;bb&lt;/Header&gt;&lt;/Fields&gt;&lt;/xml&gt;";
</code></pre>

<p>and display back </p>

<p>//The code need to be compatible from 4.3.0 to the latest versions.</p>

<pre><code>$xpresult = xpath_eval($xml_String, "/xml/Fields/Header");
foreach ($xpresult-&gt;nodeset as $node)
{
    $newxml .= $node-&gt;dump_node($node);
}
</code></pre>
