Hi
I am new to PHP and I am trying to read this XML file (myfile.xml) using DOM:
<?xml version="1.0" encoding="ISO-8859-1"?>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
I created a very simple PHP document I called xml_01.php:
<?php
$xmlDoc = new DOMDocument();
$xmlDoc->load("myfile.xml");
print $xmlDoc->saveXML();
?>
When I point my browser to http://localhost/xml_01.php, nothing happens. No errors, nothing. I also specified the full path to my XML data file: no change.
I even tried re-install the RPM for PHP&XML : no change. I know I am doing something wrong: is it the code or my configuration?
Can someone please help?
My sandbox config is:
RedHat 2.6.9 el
Apache 2.2.3
PHP 5.16
MySQL 5.0
Thanks.
Al.