public List<Entry> processData(Document doc) {
        List<Entry> entryList = new ArrayList<>();
        List<String> scriptures = new ArrayList<>();
        List<String> topic = new ArrayList<>();
        String date;
        String content = null;
        String scrip;
            
        NodeList entry = doc.getElementsByTagName("entry");
            
        for (int temp = 0; temp < entry.getLength(); ++temp) {
            Node node = entry.item(temp);
                
            if (node.getNodeType() == Node.ELEMENT_NODE) {
                Element element = (Element) node;
                NodeList childNodes = node.getChildNodes();
                    
                for (int i = 0; i < childNodes.getLength(); ++i) {
                    Node childNode = childNodes.item(i);
                        
                    if (childNode.getNodeName() == "scripture") {
                        Element childElement = (Element) childNode;
                            
                        scrip = childElement.getAttribute("book");
                            
                        if (childElement.hasAttribute("chapter")) {
                            scrip = scrip + " " + childElement.getAttribute("chapter");
                        }
                        if (childElement.hasAttribute("startverse")) {
                            scrip = scrip + ":" + childElement.getAttribute("startverse");
                        }
                        if (childElement.hasAttribute("endverse")) {
                            scrip = scrip + "-" + childElement.getAttribute("endverse");
                        }
                        scriptures.add(scrip);
                    }    
                    
                    if (childNode.getNodeName() == "topic") {
                        topic.add(childNode.getTextContent());
                    }
                    if (childNode.getNodeName() == "content") {
                        content = element.getTextContent().trim();
                        content = content.replaceAll("\\n\\s+", "\n");
                    }
                }
                date = element.getAttribute("date");
                entryList.add(new Entry(date, content, scriptures, topic));
            }
        } 
        return entryList;
    }