is this the correct syntax?
Code: Select all
<?php
$xml = simplexml_load_file('test.xml');
$proc = new XsltProcessor( 'test.xsl');
$proc->importStylesheet($xsl);
$newxml = $proc->transformToDoc($xml);
print $newxml->saveXML();
?>Fatal error: Call to undefined function: simplexml_load_file() in /hsphere/local/home/bruceg/inspired-evolution.com/XML.php on line 2