Question: Can I leave an element blank?

varus

Prince
Joined
Nov 3, 2005
Messages
130
Example:

<ID></ID>

Is this acceptable? Does it have the same effect as just leaving the element out?

To make things easier (for me) to read, I like to have all the elements listed, even if I don't plan to use them. Can I do this?
 
Depends on the element.

And the format would be: <ID/>

For instance:
Code:
<GameInfo>
     <UnitClasses>
          <Row>
               <Type>UNITCLASS_WHATEVER</Type>
               <DefaultUnit/>
          </Row>
     </UnitClasses>
</GameInfo>
Would set the Whatever unitclass to not have a default unit at all.
 
thats the same format they used to make the wonders and some units unavailable to the barbs and minors. But yes it all depends on what your doing.
 
Back
Top Bottom