You have to open the XML file, read the content, find the node(s) you are interested in, and assign them fo java variables. We really can't be any more specific, because XML is a hierarchical structured file format (i.e. the data inside resembles a tree, which branches, twigs, and leaves). It stores collections of classes, rather than just a specific data item.
Start here:
How to Read XML File in Java - Javatpoint[
^] and here:
A Guide to XML in Java[
^]