Try getElementsByTagName("*")->getLength() on  whatever node you want to cound the 
children for.

if you entered your comments properly, then they should not be counted.

I have not encountered a scenario where comment nodes get included in the list of 
child nodes...

-Vinayak


> -----Original Message-----
> From: Axelle Apvrille (LMC) [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 28, 2003 10:43 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Know the exact number of children of a given node ?
> 
> 
> [EMAIL PROTECTED] wrote:
> 
> >you can try using getelementbytagname (check the case) 
> function with "*" as a parameter.
> >
> >check out the domcount sample, it does this.
> >
> >-Vinayak
> >
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to