Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Navigate XML content
Message
 
To
26/08/2008 23:19:37
General information
Forum:
ASP.NET
Category:
XML
Environment versions
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01341375
Message ID:
01342105
Views:
15
Hi John,

if XSLT doesn't work for you, you could do it in code like this:
XmlDocument x = new XmlDocument();
x.Load("test.xml");
foreach (XmlNode n in x.SelectNodes("//PlugInEvent"))
{
  Console.WriteLine("Name: {0}\nDescription: {1}\nMust Implement:", 
    n["Name"].InnerText, n["Description"].InnerText);
  foreach (XmlNode n2 in n.SelectNodes("//MustImplementType"))
    Console.WriteLine("\tType: {0}\n\tEventHandler: {1}\n\tAssembly: {2}", 
      n2["Type"].InnerText, n2["EventHandler"].InnerText, n2["Assembly"].InnerText);
}
--
Christof
Previous
Reply
Map
View

Click here to load this message in the networking platform