小编Day*_*r21的帖子

使用.NET读取XML文件

我是xml的新手,无法找到在标签之间获取内容的方法.我的XML文件是

<?xml version="1.0" encoding="utf-8"?>
<block1>
  <file name="c:\w0.xml">
    <word>Text</word>
    <number>67</number>
   </file>
  <file name="c:\w1.xml">
    <word>Text</word>
    <number>67</number>
  </file>
  <file name="c:\w2.xml">
    <word>Text</word>
    <number>67</number>
  </file>
</block1>
Run Code Online (Sandbox Code Playgroud)

.net c# xml

1
推荐指数
1
解决办法
511
查看次数

标签 统计

.net ×1

c# ×1

xml ×1