积极答复者
xmlreader.create返回none

问题
-
答案
-
你上面写的没有错,它是会返会none的,XmlReader定位在文档中第一个节点之前,你须要调用Read()方法来读取。参考:http://social.msdn.microsoft.com/Forums/en-US/xmlandnetfx/thread/794e8dcf-4b09-481c-8742-af46673dd8b3/
Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com Microsoft One Code Framework
- 已标记为答案 Peter pi - MSFTModerator 2012年7月3日 1:47
全部回复
-
你上面写的没有错,它是会返会none的,XmlReader定位在文档中第一个节点之前,你须要调用Read()方法来读取。参考:http://social.msdn.microsoft.com/Forums/en-US/xmlandnetfx/thread/794e8dcf-4b09-481c-8742-af46673dd8b3/
Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com Microsoft One Code Framework
- 已标记为答案 Peter pi - MSFTModerator 2012年7月3日 1:47
-
你可以参参考: http://www.codeproject.com/Articles/4902/Reading-an-XML-file-using-NET
Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com Microsoft One Code Framework