连接数据库,进行查询之后,得到的数据放入了dataset,查询的结果位字符1,然后用getXML得到数据进行转换就报错了
试试看Convert.ToInt32(s.Trim())
Int32.TryParse(String s,Out Int32 value)