GGA Web Page    GGA Discussion Forums    GGA Forums  Hop To Forum Categories  Non-Geocaching Topics Forum    Inserting XML into a webpage
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Oops....
Picture of Amazingracer
Posted
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! Smile
-Amazingracer

It's about who controls the information Marty!
 
Posts: 765 | Location: Atlanta, GA | Registered: December 15, 2002Reply With QuoteEdit or Delete MessageReport This Post
Geocacher
Picture of KVOM
Posted Hide Post
XML isn't code - it has to be parsed/transformed for display. Can you provide an example?


 
Posts: 555 | Location: Cumming, GA | Registered: February 15, 2004Reply With QuoteEdit or Delete MessageReport This Post
Oops....
Picture of Amazingracer
Posted Hide Post
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! Smile
-Amazingracer

It's about who controls the information Marty!
 
Posts: 765 | Location: Atlanta, GA | Registered: December 15, 2002Reply With QuoteEdit or Delete MessageReport This Post
Geocacher
Yahoo IM
Posted Hide Post
<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,
 
Posts: 149 | Location: Winder, GA, USA | Registered: November 09, 2002Reply With QuoteEdit or Delete MessageReport This Post
Geocacher
Yahoo IM
Posted Hide Post
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. Razz

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.
 
Posts: 149 | Location: Winder, GA, USA | Registered: November 09, 2002Reply With QuoteEdit or Delete MessageReport This Post
Oops....
Picture of Amazingracer
Posted Hide Post
Thanks Holt!
It works great:
http://halo2.amazingracer.com/stats.htm


Happy Hunting! Smile
-Amazingracer

It's about who controls the information Marty!
 
Posts: 765 | Location: Atlanta, GA | Registered: December 15, 2002Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

GGA Web Page    GGA Discussion Forums    GGA Forums  Hop To Forum Categories  Non-Geocaching Topics Forum    Inserting XML into a webpage

Copyright GGA 2006
"Signal" frog Graemlins are Copyright (C) 2003 Groundspeak, Inc. Used with permission.