public ArrayList<String> getAllIdentifier() {
        ArrayList<String> result = new ArrayList<>();
        NodeList nl = doc.getDocumentElement().getElementsByTagName("stock");
        for (int i = 0; i < nl.getLength(); i++) {
            Element e = (Element) nl.item(i);
            result.add(e.getAttribute("identifier"));
        }
        return result;
    }