Concernant le code, je ne sais pas trop comment/quoi donner alors voici ce qui me semble utile :
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.Diagnostics;
using System.Xml;
using System.Xml.XPath;
puis dans un bouton :
XPathDocument XPathDocu = new XPathDocument("fichier.xml");
XPathNavigator Navigator;
XPathNodeIterator Nodes;
Navigator = XPathDocu.CreateNavigator();
XPathNodeIterator Nodes2;
ExpXPath = "//CONTENT[@Code='T1' or @Code='T2' or @Code='T3']";
Nodes = Navigator.Select(Navigator.Compile(ExpXPath));
String t = "";
while (Nodes.MoveNext())
{
Nodes2 = Nodes.Clone();
Nodes2.Current.MoveToFirstAttribute(); // se place au début
Nodes2.Current.MoveToNextAttribute(); // et now pile sur Code
t = Nodes2.Current.Value;
Console.WriteLine("{0}", "niveau=" + Int32.Parse(t.Replace("T", "").ToString()));
Nodes.Current.MoveToFirstChild();
Console.WriteLine("{0}", "Nom=" + Nodes.Current.Value);
}
Voila, j'espère qu'il y a ce qui faut !?