public static void readXML() throws Exception {

        puzzleHighscores = new Vector<SlidingPuzzleHighscore>();

        DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
        DocumentBuilder builder = factory.newDocumentBuilder();

        Document doc = builder.parse(new File("highscore.xml"));

        Element rootElement = doc.getDocumentElement();
        System.out.println("root element: " + rootElement.getNodeName());

        NodeList list = rootElement.getElementsByTagName("user");

        for (int i = 0; i < list.getLength(); i++) {

            Node userNode = list.item(i);
            new SlidingPuzzleHighscore(userNode.getAttributes()
                    .getNamedItem("name").getNodeValue(), userNode
                    .getAttributes().getNamedItem("score").getNodeValue());
        }
    }