$dom->getElementById code example
Example 1: getelementbyid
document.getElementById("someid");
Example 2: $dom->getElementById
validateOnParse = true;
$doc->Load('my.xml');
echo $doc->getElementById('php-basics') . "\n";
?>
document.getElementById("someid");
validateOnParse = true;
$doc->Load('my.xml');
echo $doc->getElementById('php-basics') . "\n";
?>