public void loadData(String resource) {
        File xmlFile = new File(resource);
        try {
            Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(xmlFile);
            
            Node root = doc.getDocumentElement();
            data.put(resource, root.getChildNodes());
        } catch(Exception e) {
            e.printStackTrace();
        }
    }