1XmlDocument xDoc = new XmlDocument(); 2 3xDoc.LoadXml(xBookingResp.OuterXml.ToString()); 4XmlNode xNode =xDoc.CreateXmlDeclaration("1.0", "utf-8", null); 5xDoc.InsertBefore(xNode, xDoc.DocumentElement);