c# 中操作xml文件 读取所有的父节点 并显示现在listbox中 如下

<?xml version="1.0" encoding="GB2312"?>
<父1>
  <Son>
    <11 Name="Sam" ID="665">Sam Comment</11>
    <Third2 Name="Round" ID="678">Round Comment</Third2>
  </Son>
</父1>
<父2>
  <Son>
    <11 Name="Sam" ID="665">Sam Comment</11>
    <Third2 Name="Round" ID="678">Round Comment</Third2>
  </Son>
</父2> 

读取父1和父2出来放在listbox中 用winfrom实现 我并不知道父节点名称是什么

https://zhidao.baidu.com/question/510876696.html

先获取xml文档的根节点,再遍历其ChildNodes(对应那几个父节点)就行了