1
Hi, I needed some help. I have this code:
XmlNodeList xnList = doc.GetElementsByTagName("Line");
foreach (XmlNode xn in xnList)
{
string salescode = xn["ProductCode"].InnerText;
if (salescode == code)
{
Console.WriteLine(salescode);
}
else;
}
And this code shows the following:
But when there are repeated numbers, I just want the first one to appear. How can I do this ?
THANK YOU RENAN ! It was exactly what I needed ! Hug
– D C
@DC I noticed that you asked several questions and no answer accepted, so I think it pertinent to let you know that you can always choose an answer as correct for your question. It is a way to show that your problem has been solved with the answer. To do this, just click on ✓ on the left side of the publication.
– Jéf Bueno