Getting Child nodes count of an element
-
Hi, Heres a sample XML document: A M B 1 If i get the count of childnodes of the node , using the following statement: xmlNamenode.Childnodes.count, it returns 6 (i.e) it also includes the comments as a child node. Is there any way to directly get the count of number of elemets (excluding comment nodes) instead of alll the childnodes? Thanks in advance Regards Madhu
-
Hi, Heres a sample XML document: A M B 1 If i get the count of childnodes of the node , using the following statement: xmlNamenode.Childnodes.count, it returns 6 (i.e) it also includes the comments as a child node. Is there any way to directly get the count of number of elemets (excluding comment nodes) instead of alll the childnodes? Thanks in advance Regards Madhu
Xml naming convention is camelCase element names. ... Use XPath. I believe there are several sample queries on the web that will give you the exact results you are looking for.
File Not Found