I should check that your XML code is VALID.
It may be an XML Parse error = Not a php error
You can use e.g. this ONLINE XML validator, on your xml file:
http://www.validome.org/xml/
this line, for ezample, is maybe not valid xml tags code:
echo "<?xml version=\"1.0\" ?><clock1><timenow>".date('H:i:s')."</timenow></clock1>";
regars 🙂
halojoy