XML feed question.
Stoned Smurfs
27-10-2004, 21:05
ok i got a newbie question, i love this game so much im paying to have a site built for our region. i would like the site to have NS updates and maybe a GDP calculator of our own on it. i have met scripters and coders that say they can do it they just need more information about the XML feed and thats where i get like "uhhh, okay...". so is there a game mod out there that can help or anyone with knowledge about this?
~Pot~
Jjuulliiaann
27-10-2004, 22:23
In the news archives there is a link somewhere.
SalusaSecondus
27-10-2004, 22:41
National UN Feed: http://www.nationstates.net/cgi-bin/nationdata.cgi?nation=salusasecondus
Regional UN Feed: http://www.nationstates.net/cgi-bin/regiondata.cgi?region=the_rejected_realms
To use, just replace my name and my region with your nation's name and region. For best results use all lower-case and replace all spaces with underscores (ie. "The Rejected Realms" becomes "the_rejected_realms").
Frisbeeteria
28-10-2004, 02:04
For best results use all lower-case and replace all spaces with underscores (ie. "The Rejected Realms" becomes "the_rejected_realms").
On NSwiki (http://ns.goobergunch.net/wiki/index.php/Main_Page), we're using a wiki variable that parses spaces into underscores. So far, it appears to be entirely case-insensitive for the XML feed, access to Regional Controls, and automated links to a couple of the calculators. See Nation:SalusaSecondus (http://ns.goobergunch.net/wiki/index.php/SalusaSecondus) and Region:the Rejected Realms (http://ns.goobergunch.net/wiki/index.php/The_Rejected_Realms) for a couple of good examples. (look at the bottom of the infoboxes)