Vote count:
0
Good day.. im a newbie in programming... can you help me.. how to load an uploaded xml file from database.... using ..
MYSQL DATABASEA $CONTENT=the text of the xml file $NAME=is the name ex(sampleview.xml)
<?php
// Load XML file
$xml = new DOMDocument;
$xml->load('sampleview.xml');//in this area is the error , i cannot load the xml file
// Load XSL file
$xsl = new DOMDocument;
$xsl->load('foreach_template.xsl');
// Configure the transformer
$proc = new XSLTProcessor;
// Attach the xsl rules
$proc->importStyleSheet($xsl);
echo $proc->transformToXML($xml);
?>
can you help me in the code please... :)
asked 15 secs ago
Aucun commentaire:
Enregistrer un commentaire