parsing an XML file
Posted: Tue Mar 28, 2006 10:34 am
I am trying to output data from an XML file using XSLT.
is this the correct syntax?
I get an error
Fatal error: Call to undefined function: simplexml_load_file() in /hsphere/local/home/bruceg/inspired-evolution.com/XML.php on line 2
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