xml mapping for entities