Damn i guess i shouldnt have made it resolved, as ive hit another hitch.
I removed that line, and it gave me the proper xml tree structure, so im hoping that page is fine now.
The part im struggling with now, is to apply an XSL stylesheet to this $xml string.
ive been working with the example from w3schools, but its not working for me 🙁
Im gettin really confused, as ive had no prior experience i dont know what to do next. ill show you what i have.....this is my file that trys to apply them together.
and if u go Here u can see the result i get
the xml page is Here
the xsl page is Here
<?php
include('check_login.php');
include('xml.php');
// $xml and $xsl contain the XML and XSL data
$arguments = array('/_xml' => $xml);
// Allocate a new XSLT processor
$xh = xslt_create();
// Process the document
$result = xslt_process($xh, 'arg:/_xml', 'net.xsl', NULL, $arguments);
if ($result) {
echo "SUCCESS, sample.xml was transformed by sample.xsl into the \$result";
echo " variable, the \$result variable has the following contents\n<br />\n";
echo "<pre>\n";
echo $result;
echo "</pre>\n";
} else {
echo "Sorry, sample.xml could not be transformed by sample.xsl into";
echo " the \$result variable the reason is that " . xslt_error($xh);
echo " and the error code is " . xslt_errno($xh);
}
xslt_free($xh);
?>