PDA

View Full Version : How to get ID from vB external XML file?


RomeoCharlie
09-01-2008, 06:24 PM
<?
$xmlFileData = file_get_contents("linktovbexternalfile");
$xmlData = new SimpleXMLElement($xmlFileData);
foreach($xmlData->thread as $thread) {
print("<h2>" . $thread->title . "</h2><br />");
print($thread->author . " (id:". $thread->id .") <br />_________________________<br />");

}

?>

Will give me everything except for the thread id. Any ideas?

--------------- Added 1220310881 at 1220310881 ---------------

Never mind I figured it out :)