This article highlights the use of XPath 2.0 in Java to look up data within XML documents.The XML file has a <file> element with <currency> child elements, each having a key attribute and a nested <name> element.XPath expressions can be used to map currency keys to their corresponding names or vice versa.The Java module xpath2.0-helper from Maven Central simplifies the process, allowing for efficient and concise code.