I'm new here - and I guess you guys are the best - so here goes.Here's my problem. I was dared to create an entire blog site based solely on XML - no databases. So far, I'm doing very well. I just have one issue that is holding me back from finishing this project all together.I have a "Blog Comments" xml document like this:\[code\]<comments> <blogId id="123"> <commentID>46</commentID> <userName>user1</userName> <userComment>This is a test comment</userComment> </blogId></comments><comments> <blogId id="123"> <commentID>47</commentID> <userName>user2</userName> <userComment>this is a test comment by some user</userComment> </blogId></comments><comments> <blogId id="1244"> <commentID>129</commentID> <userName>user3</userName> <userComment>This is someone else's comment</userComment> </blogId></comments>\[/code\]I would like to be able to count the number of comments attached to the first blogId node(?).So far, I have opened the doc and am able to read, but I don't know how to count....Thoughts?