public String getValue(String attributeName) {
        NodeList methodNodes = getDocument().getElementsByTagName(attributeName);
        if (methodNodes.getLength() == 0 || methodNodes.getLength() > 1){
            System.err.println("Couldn't read XML");
            return null;
        }
        return methodNodes.item(0).getTextContent();
    }