import java.util.HashMap;import java.util.List;import java.util.Map; import org.dom4j.Document;import org.dom4j.DocumentException;import org.dom4j.DocumentHelper;import org.dom4j.Element; public class ParseXml { public Map<String,Object>map = new Ha…