<?xml version="1.0"?>
-<ArrayOfanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><anyType xmlns:a="http://www.w3.org/2001/XMLSchema" i:type="a:string">AAAA </anyType><anyType xmlns:a="http://www.w3.org/2001/XMLSchema" i:type="a:string">BBB </anyType><anyType xmlns:a="http://www.w3.org/2001/XMLSchema" i:type="a:string">CCC </anyType></ArrayOfanyType>
怎样读取 值????
<?xml version="1.0"?>
-<ArrayOfanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<anyType xmlns:a="http://www.w3.org/2001/XMLSchema" i:type="a:string">AAAA </anyType>
<anyType xmlns:a="http://www.w3.org/2001/XMLSchema" i:type="a:string">BBB </anyType>
<anyType xmlns:a="http://www.w3.org/2001/XMLSchema" i:type="a:string">CCC </anyType>
</ArrayOfanyType>
-<ArrayOfanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
这个【-】是什么东西。 System.Xml.XmlDocument xdoc = new System.Xml.XmlDocument();
xdoc.Load(@"c:\test.xml"); List<string> result = new List<string>();
foreach (XmlNode node in xdoc.ChildNodes[1].ChildNodes)
{
result.Add(node.InnerText);
}
<?xml version="1.0"?>
-<ArrayOfanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
这个【-】是什么东西。这是你不用管它 是调用web服务的兄弟们忘说 一句 是 windows ce 的 没这属性 xdoc.ChildNodes