Access Attributes : XML Read : XML C# Source Code


Custom Search

C# Source Code » XML » XML Read »

 

Access Attributes








    




using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;

class Program {
    static void Main(string[] args) {

        XmlDocument documentation = new XmlDocument();
        documentation.Load("DocumentedClasses.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);
            }
        }
        foreach (XmlNode node in typeNodes) {
            Console.WriteLine("- {0}", node.Attributes["name"].Value.Substring(2));
        }
    }
}
           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo XML
» XML Read