Thread started: Aug 12 2006, 6:19 AM EDT
Watch
Some kind of tips on how data can be used from the feeds would be great.. =D
I'm pulling my hair out trying to work it out, I'm trying to code a custom vBulletin "Xbox Live Portal" modification. I found this: http://us3.php.net/xsl - though I'm not sure it's relevant?
0
out of
1 found this valuable.
Do you find this valuable?
Do you?
Show Last Reply
|
|
Last Reply:
RE: How to use the feeds?
By: ,
Jan 28 2007, 9:58 PM EST
I have a simple PHP script I fund on the net that will allow you to view XML pages in a nice list. The way I remade it though it rquires the costi GamerCard script...
<?php //Parses the 360Voice.com Leaderboard for specified tag (XML) include 'gamercard.php'; //Used so the system can use the $tag
$file = "http://www.360voice.com/api/gamertag-leaderboard.asp?tag=".$tag; //Page to Parse
function contents($parser, $data){ echo $data; }
function startTag($parser, $data){ echo "<b>"; }
function endTag($parser, $data){ echo "</b><br />"; }
$xml_parser = xml_parser_create();
xml_set_element_handler($xml_parser, "startTag", "endTag");
xml_set_character_data_handler($xml_parser, "contents");
$fp = fopen($file, "r");
$data = fread($fp, 80000);
if(!(xml_parse($xml_parser, $data, feof($fp)))){ die("Error on line " . xml_get_current_line_number($xml_parser)); }
xml_parser_free($xml_parser);
fclose($fp);
?>
It makes it into a nice list, you can parse off it if you wish...
out of
found this valuable.
Do you find this valuable?
|