StirCrazy Posted December 6, 2006 Share Posted December 6, 2006 This is probably the wrong place to post this but I'm hoping someone who knows PHP here also knows ASP/IISIs there a way of doing this:-[code]Dim xmlrequestSet xmlrequest = Server.CreateObject("MSXML2.ServerXMLHTTP")xmlrequest.open "GET", strQuery, Falsexmlrequest.setRequestHeader "Content-type", "text/xml"xmlrequest.sendxml.loadxml(xmlrequest.responseText)xsl.load(Server.MapPath(".") & "\results.xsl")[/code]...in PHP?Regards,S.C> Link to comment https://forums.phpfreaks.com/topic/29707-coverting-to-php/ Share on other sites More sharing options...
arianhojat Posted December 6, 2006 Share Posted December 6, 2006 u loading XML? and then converting it via XSL to another XML doc?$xml = new DOMDocument;$xml->load('collection.xml');$xsl = new DOMDocument;$xsl->load('collection.xsl');// Configure the transformer$proc = new XSLTProcessor;$proc->importStyleSheet($xsl); // attach the xsl rules//this might be needed... header("Content-Type: text/xml");echo $proc->transformToXML($xml); Link to comment https://forums.phpfreaks.com/topic/29707-coverting-to-php/#findComment-136368 Share on other sites More sharing options...
StirCrazy Posted December 6, 2006 Author Share Posted December 6, 2006 Cheers arianhojat,looks right but get an error.Fatal error: Cannot instantiate non-existent class: domdocument in /xml-import.php on line 3 ($xml = new DOMDocument;)I'm I right in guessing this is a problem with my PHP version? S.C> Link to comment https://forums.phpfreaks.com/topic/29707-coverting-to-php/#findComment-136408 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.