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>
Donate to Scorched3D Get it from CNET Download.com! 5 Stars