Solved

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

Posted on 2011-09-05
2
312 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Create a path if not exists 7 124
How to load 2 images in same column in Delphi 2 81
Microsoft Access 97 and Delphi XE2 9 85
Typecasting TBytes to Integer in Delphi XE8 2 63
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
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…

734 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