I keep getting errors...
<?
// data file
$file = "feeds/test1.xml";
// create a document object
$dom = xmldocfile($file);
// echo these values to see the object type
// get root node
$dom->root();
// get children under the root node as array
$dom->children();
?>
This is the error message: "Call to a member function on a non-object".
When I use $dom = xmldocfile($file) or die ("uh-oh");, the output is "uh-oh"... so there must be something wrong with the reading of the XML-file.
Any ideas?
Cheers,
Stefan