Sign in or 

|
xOBKx |
How to use the feeds?
Aug 12 2006, 6:19 AM EDT
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? |
|
360voice |
1. RE: How to use the feeds?
Aug 17 2006, 6:50 PM EDT
"Some kind of tips on how data can be used from the feeds would be great.. =DYou can check out an example of how to work with XML using ASP on my personal site. I explain how to use the flickr XML services for display. http://www.tjmweb.com/flickrapi.asp If you know ASP, that should get you started, but with PHP I can't really help out. The concepts are similar though... load the XML into a document object... push the XML through a transformation (using XSL) and it will display HTML. Do you find this valuable? |
|
Nott32 |
2. RE: How to use the feeds?
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... Do you find this valuable? |