public void createIntro(ArrayList<String> imageList, ArrayList<String> descriptionList)
    {

        Element introElement = doc.createElement("intro");
        gameModule.appendChild(introElement);
        for(int i=0;i<imageList.size();i++)
        {
        Path path = Paths.get(imageList.get(i));
        Element introModule = doc.createElement("introModule");
        Attr attr = doc.createAttribute("image");
        attr.setValue(path.getFileName().toString());
        introModule.setAttributeNode(attr);
        introModule.appendChild(doc.createTextNode(descriptionList.get(i)));
        introElement.appendChild(introModule);
        }    
    }