use XMLEncode and decode for persist configuration