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> Quote Link to comment 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); Quote Link to comment 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> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.