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(); ?> 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 Link to comment https://forums.phpfreaks.com/topic/85163-quick-question/#findComment-434495 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.