This document proposes a technique called XML duplication using XPath to detect duplicate records in hierarchical XML data. It uses a Bayesian network to calculate the probability that two XML elements are duplicates based on their attributes and structure. The technique aims to increase the efficiency of detecting and removing duplicate records from XML documents. It is evaluated on several XML datasets and is able to achieve high accuracy and efficiency compared to other duplicate detection techniques for hierarchical data.