Solved

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

Posted on 2011-09-05
2
311 Views
Last Modified: 2012-05-12
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
Comment
Question by:hidrau
2 Comments
 
LVL 13

Accepted Solution

by:
Ashok earned 500 total points
ID: 36485401
XMLDocument1.DocumentElement.ChildNodes.Count

OR

Node1:= XMLDocument1.DocumentElement.ChildNodes[0];
Node1.ChildNodes.Count
0
 
LVL 1

Author Closing Comment

by:hidrau
ID: 36891429
thanks
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question