Count function in XPath Count function in XPath xml xml

Count function in XPath


count(//event_type[text()='Error']) 

should do the trick. Also, a handy tool for XPath : http://www.whitebeam.org/library/guide/TechNotes/xpathtestbed.rhtm

Hoping this helps.