frederf 0 Posted May 25, 2007 I gave it a whack recently because 4IB's current setup is to have a separate squad.xml for each section allowing us to have different TAGs and different logos. Unfortunately this meant 3 files, 3 links which was a pain to edit and required that anyone changing between sections would have to edit their profile for a new link. No more. I put 3 squads on one file. Editing players into different squads is a snap, no member has to edit anything on their end. Example. Squad.xml<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"><?xml version="1.0"?> <?DOCTYPE squad SYSTEM "squad.dtd"?> <?xml-stylesheet href="squad.xsl?" type="text/xsl"?> <squad nick="HQS"> <name>Headquarters Section</name> <email>webmaster@4thib.com</email> <web>www.4thib.com</web> <picture>HQS.paa</picture> <title>4TH IN BDE</title> <member id="0" nick="Mr. X"> <name>Mr. X</name> <email></email> <icq></icq> <remark>Platoon leader. "Urban combat is fought with butter."</remark> </member> </squad> <squad nick="1SQD"> <name>1st Squad</name> <email>webmaster@4thib.com</email> <web>www.4thib.com</web> <picture>1SQD.paa</picture> <title>4TH IN BDE</title> <member id="0" nick="Mr. Y"> <name>Mr. Y</name> <email></email> <icq></icq> <remark>Squad leader. "Yadamean?"</remark> </squad> <squad nick="2SQD"> <name>2nd Squad</name> <email>webmaster@4thib.com</email> <web>www.4thib.com</web> <picture>2SQD.paa</picture> <title>4TH IN BDE</title> <member id="0" nick="Mr. Z"> <name>Mr. Z</name> <email></email> <icq></icq> <remark>Alpha team leader. "He's just this guy, yaknow?"</remark> </member> </squad> Share this post Link to post Share on other sites
Maddmatt 1 Posted May 25, 2007 Cool, maybe add this to the xml page in the wiki? Share this post Link to post Share on other sites
dslyecxi 23 Posted May 25, 2007 Looks good, I'll have to give this a shot. Share this post Link to post Share on other sites
Synide 0 Posted May 25, 2007 lol, it's funny how easy it is to miss very logical things... nice deduction. Share this post Link to post Share on other sites
celery 8 Posted May 25, 2007 I will try this out, thanks. Share this post Link to post Share on other sites
dslyecxi 23 Posted May 25, 2007 Testing seems to show that this does not actually work. We had people connecting and showing up as different XMLs to different people, it was completely unreliable. If it sounds too good to be true... Share this post Link to post Share on other sites
frederf 0 Posted May 26, 2007 My appologies for getting folks' hopes up. It worked somewhat for us but currently not now. Going to the three-file, three-link method. Share this post Link to post Share on other sites
mahuja 12 Posted May 26, 2007 The <squad> tag is top-level, and valid xml cannot have more than one top-level. Not even of the same type. Share this post Link to post Share on other sites