An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
Hi @NICOLAS 60S ,
What you need is easy to achieve via LINQ to XML.
I saved your XML into a file on the file system: "e:\Temp\NICOLAS60S-5333.xml".
XML
<?xml version="1.0"?>
<Report>
<DWDD004>
<Database>xxxxx</Database>
</DWDD004>
<DWDD007>
<Database>yyyyy</Database>
</DWDD007>
</Report>
c#
void Main()
{
const string filename = @"e:\Temp\NICOLAS60S-5333.xml";
const string nameOfReport = "DWDD004";
XDocument xdoc = XDocument.Load(filename);
string Database = xdoc.Descendants(nameOfReport)
.Elements("Database")
.FirstOrDefault()?.Value;
Console.WriteLine($"Database='{Database}'");
}
Output
Database='xxxxx'