Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

find value by tag name in xml

Tags:

.net

xml

c#-2.0

How can I find value by tag name in xml file? using C#.net 2.0

There are just 10 distinct nodes in my xmldocument.

I dont want to write xpath. I think there is an auto find property.

like image 310
Mehmet Avatar asked Dec 04 '25 15:12

Mehmet


1 Answers

I have solved my problem with this scneirao:

XmlNodeList nl = xdoc.GetElementsByTagName("CustomerID"); sb.Append(nl[0].InnerXml);

like image 63
Mehmet Avatar answered Dec 07 '25 03:12

Mehmet



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!