Jump to content

Quick question


Snatch

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.