I am simply trying to call a store procedure (SQL Server 2008) using C# and passing XMLDocument to a store procedure parameter that takes a SqlDbType.Xml data type. I am ge
public static string SerializeToXml(T obj) { XmlSerializerNamespaces ns = new XmlSerializerNamespaces(); ns.Add("",""); StringWriter Output = new StringWriter(new StringBuilder()); XmlSerializer ser = new XmlSerializer(obj.GetType); ser.Serialize(Output, obj, ns); return Output.ToString(); }