How to count child nodes of XML?

Rizlaa

New Member
I have one XML like this ...\[code\]<?xml version="1.0" encoding="iso-8859-1"?><world> <country> <name> France </name> <city> Paris </city> <population> 3996 </population> <city> Lille </city> <state>NE</state> <zip> 000000 </zip> </country></world>\[/code\]Here we can see that Tag Country has 6 child nodes .But how to calculate it Programmatically.Your help will be appreciated..Thanks in Advance....
 
Back
Top