private void openParticipants() {
        JFileChooser fc = new JFileChooser();
        // XML file filter
        FileNameExtensionFilter xmlfilter = new FileNameExtensionFilter(
                "xml files (*.xml)", "xml");
        fc.addChoosableFileFilter(xmlfilter);
        // Setting dialogs parent and showing it up
        int returnVal = fc.showOpenDialog(frmVotingParticipants);
        if (returnVal == JFileChooser.APPROVE_OPTION) {
            File file = fc.getSelectedFile();
            String fileName = file.getAbsoluteFile().toString();
            if (fileName.endsWith(".xml"))
                try {
                    DocumentBuilderFactory dbFactory = DocumentBuilderFactory
                            .newInstance();
                    DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();
                    Document doc = dBuilder.parse(file);
                    doc.getDocumentElement().normalize();
                    if (doc.getDocumentElement().getNodeName() == "tournament");
                    
                    removeParticipants();                
                    
                    NodeList nList = doc.getElementsByTagName("participant");
                    for (int temp = 0; temp < nList.getLength(); temp++) {
                        Node nNode = nList.item(temp);
                        if (nNode.getNodeType() == Node.ELEMENT_NODE) {
                           Element eElement = (Element) nNode;
                           System.out.println("Name : " + getTagValue("name", eElement));                       
                           System.out.println("Points: " + getTagValue("points", eElement));
                           //TODO by Shabas implement team reading and creation
                           //For now, we write default "Komanda". Actually, we don't write anything :P
                           addParticipant(getTagValue("name", eElement), Integer.parseInt(getTagValue("points", eElement)));
                        }
                     }
                } catch (Exception e) {
                    e.printStackTrace();
                }
        }
    }