Update: Minor correction in the last two rows of the table -- thanks to a comment by Michael Ludwig. I will talk about the efficiency of this and other related XPath expressions in my next post. In my first post I provided a compact one-liner XPath expression that obtains all duplicate items in a given…