Detect if <name> elements are duplicated