   Putting my game parameters in a XML file
  Hi dudes!I'd like to store my game parameters in a XML file but I'm not sure which format should I choose. <!DOCTYPE document><parameters><SEMI_SOLID_PLATFORM_FRICTION>0.4</SEMI_SOLID_PLATFORM_FRICTION><SOLID_PLATFORM_FRICTION>0.4</SOLID_PLATFORM_FRICTION></parameters>Or maybe this one?<!DOCTYPE document><parameters><parameter type="SEMI_SOLID_PLATFORM_FRICTION" value="0.4"><parameter type="SOLID_PLATFORM_FRICTION" value="0.4"></parameters>What do you think? Any other alternative?Thanks a lot.   
  For Rebirth I group properties into individual resource objects, so the xml looks something like this:<resources>  <!-- Maps the class we just created onto the tag name 'TankTemplate' --><map name="TankTemplate" class="yourgame.TankTemplate" />   <!-- Create a new TankTemplate resource -->  <TankTemplate name="player.tank" moveSpeed="1.5" rotateSpeed="4.0"  /></resources>(taken from here)I find this works well since you'll often want slightly different configurations (like a "normalLevel" with typical friction values, and an "icyLevel" config with lower friction) which you can swap in and out rather than a single global list of properties.YMMV.   ;  Hi,You forgot one more alternative:<!DOCTYPE document><parameters><parameter type="SEMI_SOLID_PLATFORM_FRICTION">0.4</parameter><parameter type="SOLID_PLATFORM_FRICTION">0.4</parameter></parameters>In fact it does not have much impact which one you choose, it is just a matter of personal preference. I personnally prefer the simplicity of your first solution since I like to name my fields directly after what they stand for. To my mind, your second solution is not practical since you will have to store attributes in a stack to know at wich parameter belongs which value: a little more coding for correct parsing with little added value.Hope that helps.Ghostly yours,Red.   ;  Thanks a lot.   