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
LVL 1
hidrauAsked:
Who is Participating?
 
AshokConnect With a Mentor Commented:
XMLDocument1.DocumentElement.ChildNodes.Count

OR

Node1:= XMLDocument1.DocumentElement.ChildNodes[0];
Node1.ChildNodes.Count
0
 
hidrauAuthor Commented:
thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.