Sign Up! Login: Password: New User? Forgot? Support
Top Mods!
Wowhead Search
by sonofsamedi
Digital Clock
by Wolfar15
Admin Forums
Welcome to the GuildPortal Help Community! These forums are for admin-to-admin help.
Available Forums
Forums : Voodoo Tech and Scripter's Den of Scriptniquity > Aaron, when you have a moment...
Cedricke (New Admin) 7/15/2004 11:55 PM EST : Aaron, when you have a moment...
Cedricke
Posts: 745
Zomgawsh Poster

...could you check out the XML/XSL transformation content type?

For a while, after the release of DAoC's new expansion NF, the servers.xml file was malformed and caused errors for any content area using that file as the base for transforms. It appears that they have now fixed their export. The problem now seems to have something to do with the wrapper used to present these markups at GuildPortal.

I use XMLSpy, and am able to render appropriate output using the servers.xml file hosted at the Herald and the XSL file hosted on my providers site. I've included the links to both files in hopes that you can find out what is happening in the wrapper or can tell me if I need to try and look elsewhere for a solution..

XML: http://www.camelotherald.com/xml/servers.xml
XSL: http://members.cox.net/shadowmore/xml/na_servers.xsl

Thanks in advance for the assist.
TopBottom

Aaron Lewis (Blue Collar) 7/16/2004 4:43 AM EST : RE: Aaron, when you have a moment...
GuildPortal Dev
Aaron Lewis
Posts: 1978
Zomgawsh Poster

Hey there

With all the XML/XSL content types, there's a hidden thingy that helps you figure out what's going on.  View Source on the page and do a search for the error message you see on the web page, and you'll see a HTML commented section that gives the exact error that was returned from the parser.

I'm looking over the page, and it looks like it's complaining about invalid characters throughout.  I'm going to see what's going on with the direct feeds though.
Aaron Lewis, GuildPortal.com
TopBottom

Aaron Lewis (Blue Collar) 7/16/2004 4:57 AM EST : RE: Aaron, when you have a moment...
GuildPortal Dev
Aaron Lewis
Posts: 1978
Zomgawsh Poster

I'm thinking XMLSpy might be doing some things on behalf of the XML documents that are coming in to fix common problems, like correct encoding.  Unfortunately, GP can't really do that, since we open directly with the System.Xml.XmlTextReader class.  The alternative is to open a socket, download the document to the file system or memory, parse the document and make corrections, then feed it into the XmlTextReader.  The problem with that is performance, unfortunately.  But, here's a diagnosis of the various feeds:

OK, starting with http://www.camelotherald.com/xml/news.rss, we've got unencoded double-quotes ( surrounding the word “tank“ ) in the description element that's choking the parser.

Looks like this:

[snip] and we appreciate that many of our “tank“ players want a more [/snip]

Should look like this:

[snip] and we appreciate that many of our "tank" players want a more [/snip]

Next, http://www.camelotherald.com/xml/servers.xml on line 1010, position 14 has a partial tag, without the closing >.  It's closing a Keep element, but doing so like this:

</Keep

The European Servers feed looks like it's working fine.

The Spells database feed looks good, too.

If you have a line to the folks over there, please let them know.  I'm having trouble getting in touch...
Aaron Lewis, GuildPortal.com
TopBottom

Cedricke (New Admin) 7/16/2004 6:40 AM EST : RE: Aaron, when you have a moment...
Cedricke
Posts: 745
Zomgawsh Poster

Thanks a bunch Aaron. I'll check the page source and begin to work on them one by one. It's unfortunate that the folks at Mythic can't quite seem to get their XML exports quite right. The missing '>' doesn't surprise me though, having found originally that they were listing <relic> objects without closing them.

I appreciate you looking into this and will get to work on these this evening.
TopBottom

Cedricke (New Admin) 7/18/2004 2:51 AM EST : RE: Aaron, when you have a moment...
Cedricke
Posts: 745
Zomgawsh Poster

name="3023547">

Quick update on this issue...

Until such time as Mythic can provide a consistent servers.xml, I'll be downloading, correcting and republishing the corrected file to our web storage. It's a bit more work, but certainly looks better on the guild site than all the Error messages in many of the sections.

I have also made some extensive modifications to some of the XSL that is used on our site. I'll be posting a link in a new thread in this forum for anyone who is interested in seeing a method for producing the various outputs.

Errata: just as a note, the current problem with the servers.xml file appears to be an unprintable character in each and every entry for Nottmoor Faste Spire.

I've submitted a change request to the Herald, and as usual, will have to wait to see if they fix it. Seems that they could at least pull these XML files up in a browser to determine if they have a problem before publishing the data.

TopBottom

Admins Online
There are   members online.
So-and-so has logged on!
%title%
%message%