Home
Screenshots
Downloads
Forums
Docs
Servers
Stats
IRC Chat
Mods

Special Special    Search Search    Login/Logout Login

Main Page » XML Concepts

Contents

XML Concepts

Before you start hammering away at making your own changes to the game, it's a good idea to familiarize yourself with a few basic rules about XML if you are not already familiar with XML or HTML even.


All XML elements must have a closing tag

Every time you open up a tag like <tag>, you will need to close it with a </tag>

Incorrect:

   <size>12
   <size>12<size>

Correct:

   <size>12</size>


XML tags are case sensitive

XML tags are case sensitive. The tag <Number> is different from the tag <number>. Opening and closing tags must be written with the same case. The case must also match what is documented in the syntax definitons.

Example:

   <Weapon>incorrect</weapon>
   <weapon>correct</weapon>


Attribute values must always be quoted

Certain elements in the XML files have attributes, which must always be quoted.

Incorrect:

   <accessoryaction type=WeaponDelay></accessoryaction>

Correct:

   <accessoryaction type="WeaponDelay"></accessoryaction>



Edit this pagePage historyWhat links hereRelated changes
Donate to Scorched3D Visit Scorched3D at SourceForge.net Get it from CNET Download.com! 5 Stars
© Copyright 2008 Gavin Camp. All Rights reserved.