From: Naresh Ramaswamy Date: 2009-02-20T15:05:53+09:00 Subject: Re: Search for an Presence of an XML element in a array > > addresses = XPath.match(doc, "//addresses") > puts addresses.length #0 Thank you very much for your responses. Let me get in a little more deep into my problem, I have attached my actual XML document for your referance and suggestion. I need to look into every TXN element "" where x can be 1 to n before that I need to count the occurance of "