• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 319
  • Last Modified:

How can I count how many nodes there is in my xml ?

Hello guys

I got this example in Delphi 5 to work with XML but I don't know how to count how many nodes there is a element.

Please take a look at this example

http://edn.embarcadero.com/article/27106

Thanks
0
hidrau
Asked:
hidrau
1 Solution
 
AshokCommented:
XMLDocument1.DocumentElement.ChildNodes.Count

OR

Node1:= XMLDocument1.DocumentElement.ChildNodes[0];
Node1.ChildNodes.Count
0
 
hidrauAuthor Commented:
thanks
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now