EncodeAndDecodeXML