use XMLDecode and encode for persit configuration