Server status XML error?


 

Posted

On the Server Status page it says "The server status will update automatically, therefore there is no need to refresh this page. An XML feed of the server-status has also been provided and can be linked to using the icon located at the bottom of the page."

When i click on the icon i get:
[ QUOTE ]
This XML file does not appear to have any style information associated with it. The document tree is shown below.

[/ QUOTE ]

What am i doing wrong?


Dr. Todt's theme.
i make stuff...

 

Posted

You're not doing anything wrong. The XML feed is not designed to be displayed, it is intended to be parsed, typically by a script or program.

It is possible to embed display information in an XML file, allowing it to be displayed much like HTML, but that XML file is not set up that way since that's not its intended use. Therefore your browser just displays the raw data.


 

Posted

Ah, so how would i use it properly with Firefox? i've added other XML feeds before (6 so far), but those were more... automated i guess.


Dr. Todt's theme.
i make stuff...

 

Posted

Well this is outside my main area of knowledge but I believe the difference is that usually what you subscribe to is an RSS feed. Those are formatted in XML, but in a specific subset. The XML feed on the server status page seems to be just raw XML.

My guess as to the intended use of the XML feed in this case is for fan sites to display their own "Server status" indicators. Presumably when you request the page the site would pull down the XML feed, parse out the server status information, and display it in some way.

So I don't think this is the type you'd subscribe to.


 

Posted

Ah, okay. i had a feeling it was something like that, but the page's description wasn't clear to me. i wasn't thinking, and all the RSS feeds i've used had the same icon.


Dr. Todt's theme.
i make stuff...

 

Posted

Yeah again I can't be sure but my bet is the web developers in this case screwed up, because you're right they are using the typical RSS feed icon for that XML feed which is misleading.


 

Posted

http://webapps.sgspaces.net/srvstatus.xml

You can subscribe to that, it will update every 10 minutes.

The difference is:
<font class="small">Code:[/color]<hr /><pre>
&lt;?xml version="1.0" ?&gt;
&lt;rss version="2.0"&gt;
&lt;channel&gt;
&lt;title&gt;CoH Server status&lt;/title&gt;

&lt;description&gt;RSS Feed of the City of Heroes server status page.&lt;/description&gt;

&lt;link&gt;http://www.cityofheroes.com/news/ser...l&lt;/link&gt;


&lt;item&gt;
&lt;title&gt;Freedom - Up&lt;/title&gt;
&lt;description&gt;Freedom server is Up&lt;/description&gt;
&lt;link&gt;http://coh.com&lt;/link&gt;
&lt;/item&gt;

&lt;item&gt;
&lt;title&gt;Justice - Up&lt;/title&gt;
&lt;description&gt;Justice server is Up&lt;/description&gt;
&lt;link&gt;http://coh.com&lt;/link&gt;
&lt;/item&gt;

-snip-

&lt;item&gt;
&lt;title&gt;Training Room - Unknown&lt;/title&gt;
&lt;description&gt;Training Room server is Unknown&lt;/description&gt;
&lt;link&gt;http://coh.com&lt;/link&gt;
&lt;/item&gt;

&lt;/channel&gt;
&lt;/rss&gt;
</pre><hr />

Each server gets an &lt;item&gt; Entry with details.
where as the XML Output from the main site is raw XML not RSS Formatted.
<font class="small">Code:[/color]<hr /><pre>
&lt;servers timestamp="2009-05-11 17:55:01" timezone="UTC"&gt;
&lt;server name="Freedom" status="Up"/&gt;
&lt;server name="Justice" status="Up"/&gt;
&lt;server name="Pinnacle" status="Up"/&gt;
&lt;server name="Virtue" status="Up"/&gt;
&lt;server name="Liberty" status="Up"/&gt;
&lt;server name="Guardian" status="Up"/&gt;
&lt;server name="Infinity" status="Up"/&gt;
&lt;server name="Protector" status="Up"/&gt;
&lt;server name="Victory" status="Up"/&gt;
&lt;server name="Champion" status="Up"/&gt;
&lt;server name="Triumph" status="Up"/&gt;
&lt;server name="Training Room" status="Unknown"/&gt;
&lt;/servers&gt;
</pre><hr />


Victory Wiki
Login Screen changer (OS X/Windows/*nix)
Web based Base designer
SO/DO Enhancement Standardization Pack
CoH Community Mods Installer