GGA Discussion Forums
GGA Forums
Non-Geocaching Topics Forum
Inserting XML into a webpage|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
Oops....![]() |
I am making a webpage for a gmae I like to play and the the makers of the game give you XML stats for your online games.
I know I can just copy and paste the XML code straight into my web page, but how can I insert the XML so that everytime the XML on the game makers site is updated, it gets updated on my site? Happy Hunting! -Amazingracer It's about who controls the information Marty! |
||
|
|
Geocacher |
XML isn't code - it has to be parsed/transformed for display. Can you provide an example?
|
|||
|
Oops....![]() |
http://www.bungie.net/stats/halo2rss.ashx?i=341530&k=458585631
Thats the link to the XML feed. How can I turn that data into a display for my website that updates on its own according to Bungie's schedule? Happy Hunting! -Amazingracer It's about who controls the information Marty! |
|||
|
|
Geocacher |
<script language="JavaScript" src="http://jade.mcli.dist.maricopa.edu/feed/feed2js.php?src=http%3A%2F%2Fwww.bungie.net%2Fstats%2Fhalo2rss.ashx%3Fi%3D341530%26k%3D458585631&chan=y&num=0&desc=1&date=y&targ=n&html=a" type="text/javascript"></script> <noscript> [URL=http://jade.mcli.dist.maricopa.edu/feed/feed2js.php?src=http%3A%2F%2Fwww.bungie.net%2Fstats%2Fhalo2rss.ashx%3Fi%3D341530%26k%3D458585631&chan=y&num=0&desc=1&date=y&targ=n&html=a]View RSS feed[/URL] </noscript> You can copy & paste the above into the html file that you want. This message has been edited. Last edited by: Snake1411, |
|||
|
|
Geocacher |
Well, that post is rather nasty looking...
Basically, you need either a CGI script or Javascript to parse and print the XML... With the use of a script that someone's already written it's (R)eally (S)imple, (S)tupid. One I use is Feed2JS. You can install it if you host your own site and take the little bit of drag off of their server. Their site: http://jade.mcli.dist.maricopa.edu/feed/ should have all the necessary information that you need. |
|||
|
Oops....![]() |
Thanks Holt!
It works great: http://halo2.amazingracer.com/stats.htm Happy Hunting! -Amazingracer It's about who controls the information Marty! |
|||
|
| Previous Topic | Next Topic | powered by eve community |
| Please Wait. Your request is being processed... |
|
GGA Discussion Forums
GGA Forums
Non-Geocaching Topics Forum
Inserting XML into a webpage
