Question: how to fetch value from xml in java?
Answer: Instantiate XML file: DOM parser loads the XML file into memory and consider every tag as an element.
Get root node: Document class provides the getDocumentElement() method to get the root node and the element of the XML file.