[thelist] Count XML Nodes

Jamie Lewis emaillists at eyota.net
Mon Dec 20 19:39:31 CST 2004


Anyone know how i can count how many xml nodes are in a document?

XML looks like:

<TESTIMONIALS>
	<TESTIMONY>
		....more child nodes ...
	</TESTIMONY>
	<TESTIMONY>
		....more child nodes ...
	</TESTIMONY>
	<TESTIMONY>
		....more child nodes ...
	</TESTIMONY>
</TESTIMONIALS>

And i want to count the number of TESTIMONIALS\TESTIMONY

anyone?
Jamie.



More information about the thelist mailing list