PDA

View Full Version : Squad.xml info.



Wull
Jul 1 2009, 12:06
I'm trying to get my head round the squad.xml info. I think I understand enough thanks to a helpful link put in another post http://community.bistudio.com/wiki/squad.xml

I have downloaded the template from that. As far as I can see I only need to concern myself with the xml part and get an image in there then find myself an ftp site to put it on. My question is, I am trying to create a tag with < and > in it. This template downloaded from above link does not like that, is there an alteration I can make so that it is accepted or is it just not a good character to use full stop?

Thanks in advance.

Edit: Forgot to also ask. Can I lock the ftp side down with a password and have the game authenticate or does it have to be open?

thegunnysgt
Jul 1 2009, 17:02
In the game the tag that will show up next to your name will be in [ ] brackets. I am afraid due to the nature of xml files, you are limited to just a letters and numbers. Within your ArmA 2 profile there is an area called Squad XML, all you have to do is simply insert the url of the xml file into that field. All the game does is get the information needed from the xml file if it were simply a page on the internet.

TomNedry
Jul 14 2009, 21:52
I'm sorry thegunnysgt, but thats not correct. There are so called Entities which represent specific chars.

In that case:

"<" = "&lt;"
">" = "gt;"

Example: You like to write

<name>foo>foo2</name> then just type:
<name>foo&gt;foo2</name>

Wull
Jul 16 2009, 09:03
Thanks Tom.

Is there a way to use the squad.xml to create to tags, one at start and one at end.

Example: [clantag] Mynamehere [section]

---------- Post added at 10:03 AM ---------- Previous post was at 09:34 AM ----------

Hmmmm, just realised, I only need to include the first tag as part of the name for it to show.