如题!
最近要与其他平台交互,返回状态都是xml,还有反序列化,xml 标记貌似自定义的在反序列化时还不认识!去掉或者修改为标准的可读取,就是获取不到SourceType属性值!
<IDEHeader>
<SendOrgan ref="0000000000">中国</SendOrgan>
<BatchTotal>1</BatchTotal>
<SendTime>2012-07-07 22:23:34</SendTime>
<SourceType ref="3"/>
<Meta>
<Key>ResponseCode</Key>
<Value>00000000</Value>
</Meta>
<Meta>
<Key>ResponseDesc</Key>
<Value>处理成功!</Value>
</Meta>
</IDEHeader>

------解决方案--------------------
你读取的代码怎么写的?
参考:
XmlNode xn=xmlDoc.SelectSingleNode("bookstore");
XmlNodeList xnl=xn.ChildNodes;
foreach(XmlNode xnf in xnl)
{
XmlElement xe=(XmlElement)xnf;
Console.WriteLine(xe.GetAttribute("genre"));//显示属性值
Console.WriteLine(xe.GetAttribute("ISBN"));
XmlNodeList xnf1=xe.ChildNodes;
foreach(XmlNode xn2 in xnf1)
{
Console.WriteLine(xn2.InnerText);//显示子节点点文本
}
}