Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Navigate XML content
Message
Information générale
Forum:
ASP.NET
Catégorie:
XML
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01341375
Message ID:
01342105
Vues:
16
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform