Well, not much of an answer, but a solution for the time being. I changed the SqlDbType to be NVarChar in the parameter.... it doesn't complain for now.
command.Parameters.Add("@xmlone", SqlDbType.NVarChar).Value = create_XML(tmp_username).ToString(); //###
↧