im new to DOM_XML and all i want to do is simply open a xml file... from php.net i tested it with this simple commend
<?php
if(!$dom = domxml_open_file("g.xml")) {
echo "Error while parsing the document\n";
exit;
}
$root = $dom->document_element();
?>
and my g.xml is simply
<?xml version="1.0"?>
<EXPLANATION INDEX="Alternate valuation">
Alternate valuation
</EXPLANATION>
and i dont understand why im getting this warning:
Warning: failed to load external entity "g.xml" in index.php
im so frustrated cuz this is such a simple command... please help!!
thanx in advance
justin