【XML解析】根级别上的数据无效:请求格式错误(UTF)

通过判断xml首尾是否有空格或其他字符来解决

xmlStr = "<" + xmlStr.Substring(xmlStr.IndexOf('<') + 1); 

猜你喜欢

转载自blog.csdn.net/CountryShi/article/details/97897142