public static string SerializeObject(this object obj) { System.Xml.XmlDocument xmlDoc = new System.Xml.XmlDocument(); System.Xml.Serialization.XmlSerializer serializer = new System.Xml.Serialization.XmlSerializer(obj.GetType()); using (System.IO.MemoryStream ms = new System.IO.MemoryStream()) { serializer.Serialize(ms, obj); ms.Position = 0; xmlDoc.Load(ms); return xmlDoc.InnerXml; } }and I am wondering what do you use normally? I am passing the XML to SQL Server and I need to parse it into the table and I am having troubles.