Solved

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

Posted on 2011-09-05
2
309 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Copy file in dll not working but working on exe ! 18 93
Delphi 2 59
How to renew a Delphi rad-studio licence? 5 64
Moving (cutting/pasting) controls in a TTabbedNotebook... 7 34
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

770 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