code: private Element getRootElement(String fileName) throws
        IOException, SAXException, ParserConfigurationException {
      DocumentBuilderFactory docBuilderFactory =
        DocumentBuilderFactory.newInstance();
      docBuilderFactory.setIgnoringComments(true);
      DocumentBuilder builder = docBuilderFactory.newDocumentBuilder();
      Document doc = builder.parse(new File(fileName));
      Element root = doc.getDocumentElement();
      if (!matched(root, CONFIGURATION_TAG_NAME)) {
        throw new IOException("Bad " + fileName);
      }
      return root;
    }
docs: Get the root element of the XML document
  @return the root element of the XML document
  @throws IOException
  @throws SAXException
  @throws ParserConfigurationException