问题描述
<?xmlversion="1.0"?><ArrayOfStringxmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:xsd="http://www.w3.org/2001/XMLSchema"><string>c:120150201053143.jpg</string><string>c:120150201053153.jpg</string><string>c:120150201053203.jpg</string><string>c:120150201053213.jpg</string><string>c:120150201053223.jpg</string><string>c:120150201053233.jpg</string><string>c:120150201053243.jpg</string><string>c:120150201053253.jpg</string><string>c:120150201053303.jpg</string><string>c:120150201053313.jpg</string><string>c:120150201053323.jpg</string></ArrayOfString>谢谢先,该xml文件的string节点中的内容,我怎么才能循环读出来呢。。
解决方案
解决方案二:
vars=newXmlSerializer(typeof(string[]));string[]values;using(varfs=File.OpenRead(path)){values=(string[])s.Deserialize(fs);}
时间: 2024-10-22 21:37:37