Quantcast
Channel: XML parsing in c# - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by Dimitre Novatchev for XML parsing in c#

Evaluate this Xpath expression:count(/*/Company)

View Article



Answer by Jon Skeet for XML parsing in c#

Descendants finds all descendants - you just want the immediate child elements:var count = xElem.Elements("Company").Count();

View Article

XML parsing in c#

<CompanyRoot><Company><Name>Courier</Name><Company><Name>Dhl</Name><Company><Name>Test1</Name></Company><Company><Name>Test...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images