private static NodeList getNodeList() {
        NodeList nList = null;
        try {
            File fXmlFile = new File(path);

            DocumentBuilderFactory dbFactory = DocumentBuilderFactory
                    .newInstance();
            DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();
            Document doc = dBuilder.parse(fXmlFile);

            doc.getDocumentElement().normalize();
            nList = doc.getElementsByTagName(galleryTagName);
        } catch (Exception ex) {
            ex.printStackTrace();
        }
        return nList;
    }