May be it's not optimal but that's the best I could do !
var streamX02 = dialog.OpenFile();
var streamX03 = dialog.OpenFile();
var readerX02 = XmlReader.Create(streamX02);
var readerX03 = XmlReader.Create(streamX03);
while (readerX02.Read())
{
if (readerX02.NodeType != XmlNodeType.Element || readerX02.Name != "txtInputFile0")
continue;
var L02 = readerX02.ReadElementContentAsString();
try
{
txtInputFile0.Text = L02;
}
catch (Exception Er3)
{
}
}
while (readerX03.Read())
{
if (readerX03.NodeType != XmlNodeType.Element || readerX03.Name != "cmbFont0")
continue;
var L03 = readerX03.ReadElementContentAsString();
try
{
cmbFont0.Text = L03;
}
catch (Exception Er3)
{
}
}