XML 文档 Tv.xml
<?xml version="1.0" encoding="utf-8" ?>
<rss>
<channal>
<title>音乐新闻</title>
<content>
<item>这是第一个音乐新闻</item>
<item>这是第二个音乐新闻</item>
</content>
</channal>
<channal>
<title>体育新闻</title>
<content>
<item>这是第一个体育新闻</item>
<item>这是第二个体育新闻</item>
</content>
</channal>
</rss>
TreeView 读取:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Xml;
namespace Iofile
{
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();