public void setPriceForMultiple(ArrayList<Stock> sList) {
        HashMap<String, Float> priceMap = new HashMap<>();
        for (Stock s : sList) {
            priceMap.put(s.getIdentifier(), s.getPrice());
        }
        
        NodeList nl = doc.getDocumentElement().getElementsByTagName("stock");
        for (int i = 0; i < nl.getLength(); i++) {
            Element e = (Element) nl.item(i);
            String id = e.getAttribute("identifier");
            if (priceMap.containsKey(id)) {
                System.out.println("Seeting " + id + " to " + priceMap.get(id));
                e.setAttribute("price", String.valueOf(priceMap.get(id)));
            }
        }
        save();
    }