In this question, the first answer explains a way of defining components of a gaming engine in XML, like this:
<?xml version="1.0" encoding="UTF-8"?>
<mobs>
<mob>
<personality>Aggressive</personality>
<intelligence>20</intelligence>
</mob>
</mobs>
Then, states in Java that your mob class would look like this:
public class Mob {
private IPersonality personality;
private Integer intelligence
//** Getters & Setters **//
}
What exactly is the XML doing, here? I'm not really familiar with XML, at all.