Configuring contracts in XML