private Document getDocument() {
        try {
            DocumentBuilderFactory f = DocumentBuilderFactory.newInstance();
            f.setValidating(false);
            DocumentBuilder builder = f.newDocumentBuilder();
            return builder.parse(new File(fileName));
        } catch (Exception exception) {
            exception.printStackTrace();
        }
        return null;
    }