Snatch Posted January 9, 2008 Share Posted January 9, 2008 Hi, using the code below how would i display $xml and $xml2 in one page? <?php $xsl=simplexml_load_file ("fragment.xslt"); $xml=simplexml_load_file ("http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"); $xml2=simplexml_load_file ("http://newsrss.bbc.co.uk/rss/sportonline_uk_edition/front_page/rss.xml"); /* create the processor and import the stylesheet */ $proc = new XsltProcessor(); $xsl = $proc->importStylesheet($xsl); /* transform and output the xml document */ $newDoc = $proc->transformToDoc($xml); print $newDoc->saveXML(); ?> Quote Link to comment https://forums.phpfreaks.com/topic/85163-quick-question/ Share on other sites More sharing options...
Lukela Posted January 9, 2008 Share Posted January 9, 2008 Dont know but I will try including the variables. Dont know if it would work cause I am just guessing Quote Link to comment https://forums.phpfreaks.com/topic/85163-quick-question/#findComment-434495 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.