script for finding duplicate xml tags(using xpath)