LINQ to XML упрощает работу.
c#
void Main()
{
const string FILENAME = @"e:\temp\ClinicalDocument.xml";
XDocument doc = XDocument.Load(FILENAME);
XNamespace ns = doc.Root.GetDefaultNamespace();
foreach (var el in doc.Descendants(ns + "content"))
{
Console.WriteLine("ID='{0}', Content='{1}'", el.Attribute("ID").Value, el.Value);
}
}
Вывод
ID='Prest_1', Content='90153 - CORTISOLO [S]'
ID='Prest_2', Content='90171 - DEIDROEPIANDROSTERONE (DEA)'
ID='Prest_3', Content='90172 - DEIDROEPIANDROSTERONE SOLFATO (DEA-S)'
ID='Prest_4', Content='90413 - TESTOSTERONE [P]'
ID='Prest_5', Content='90414 - TESTOSTERONE LIBERO'
ID='Prob_1', Content='Control'