using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
class Program
{
static void Main(string[] args)
{
XmlDocument documentation = new XmlDocument();
documentation.Load("a.xml");
XmlNodeList memberNodes = documentation.SelectNodes("//member");
List<XmlNode> typeNodes = new List<XmlNode>();
foreach (XmlNode node in memberNodes)
{
if (node.Attributes["name"].Value.StartsWith("T"))
{
typeNodes.Add(node);
}
}
Console.WriteLine("Types:");
foreach (XmlNode node in typeNodes)
{
Console.WriteLine("- {0}", node.Attributes["name"].Value.Substring(2));
}
}
}
|