Page 1 of 1
XML question
Posted: Sat Dec 03, 2005 5:16 pm
by Gandelf
I don't know the first thing about XML. So, I need help please.
Basically I just want to add some XML to my guild website so that I can list who is in the guild, their guild rank, class, level and tradeskill.
If anyone would be kind enough to post a reply showing the correct XML for this, I would be most grateful. Thanks.
Posted: Sat Dec 03, 2005 7:25 pm
by Lieva
there is actually an XML walkthru on the goa frount page
not sure how to actually do it myself - looks complicated

Posted: Sun Dec 04, 2005 1:36 am
by Lairiodd
The XML files are stored at something like:
http://daoc.goa.com/herald/servers/Pryd ... umber).xml
so
http://daoc.goa.com/herald/servers/Pryd ... ds/333.xml
would be an example.
IIRC there is another list which shows which number refers to which guild but don't remember

.
Posted: Sun Dec 04, 2005 12:21 pm
by HappyG
If words like
xml, parsing, arrays, php means nothing to you, please ignore
Chapter I and go directly to
Chapter II
Chapter I
First, you look for an ID your guild has:
http://camelot-europe.goa.com/herald/se ... ds_hib.xml
<guild guild_id="1034" name="Moondogs" rp="0"/>
So, your guild XML is located at:
http://camelot-europe.goa.com/herald/se ... s/1034.xml
Now, here's the hard part. The easiest way to parse this data on a website is by a PHP script. First you need a web host that supports PHP (which free host services or free web space provided by your ISP most likely do not support). Second you need a PHP script to do it, or write one yourself (and you don't want to try that, if you have no PHP experience). There was a script, that did parse GOA's XMLs (
http://www.purpledragons.net/xml/ ), however since the latest XML structure changes I'm not sure it still does. TBH, I had no time to check if GOA's current XML structure is actualy the same as the one in US, so in case it it, you may aswell use some PHP scripts written for US servers.
Chapter II
For the case of simple home made guild websites like yours Gandelf, this solution I believe will be the best; simply use your guild info from a site like Duskwave or DAoC stats, and include it in your home site via iframe.
You can do that simply by putting this HTML code in an apropriate part of your web site:
[HTML]<iframe src="
http://www.duskwave.com/daoc/viewguild.php?id=291" width="550" height="600"></iframe>[/HTML]
Posted: Mon Dec 05, 2005 10:42 am
by Gandelf
Thanks to everyone for their help.
Much appreciated!

Posted: Mon Dec 05, 2005 10:59 am
by Gandelf
Thanks for that HappyG.
I tried it and it worked fine. The only thing is though, it only lists the top 10 characters for some reason. Do you know if it's possible to display the whole guild and if so, how?
Also, the line that you quote:
<guild guild_id="1034" name="Moondogs" rp="0"/>
[/quote]
How come it shows zero Realm Points, when I know that we have somewhere in the region of 4,000+ ? Duskwave says we have 4,743.
Thanks
Gandelf
Posted: Mon Dec 05, 2005 11:03 am
by HappyG
You can display any webpage this way, Duskwave does not offer such list, but you can aswell include pirotess:
[HTML]<iframe src="
http://daoc.pirotess.org/?func=guilds_s ... &realm=hib" width="550" height="600"></iframe>[/HTML]
Posted: Mon Dec 05, 2005 11:10 am
by HappyG
Gandelf wrote:
How come it shows zero Realm Points, when I know that we have somewhere in the region of 4,000+ ? Duskwave says we have 4,743.
It's just what XML said at a time I wrote it. XML is updated once a day, so it is always lagging behind for a couple of RPs.