public void addTreasureBox(double x, double y, double width, double height, String note)
    {
        Element treasureBoxModule = doc.createElement("treasurebox");
        campaignModule.appendChild(treasureBoxModule);
        
        Element coordinatesModule = doc.createElement("coordinates");
        treasureBoxModule.appendChild(coordinatesModule);
        
        Element xElement = doc.createElement("x");
        xElement.appendChild(doc.createTextNode(Double.toString(x)));
        coordinatesModule.appendChild(xElement);
        
        Element yElement = doc.createElement("y");
        yElement.appendChild(doc.createTextNode(Double.toString(y)));
        coordinatesModule.appendChild(yElement);
        
        Element widthElement = doc.createElement("width");
        widthElement.appendChild(doc.createTextNode(Double.toString(width)));
        coordinatesModule.appendChild(widthElement);
        
        Element heightElement = doc.createElement("height");
        heightElement.appendChild(doc.createTextNode(Double.toString(height)));
        coordinatesModule.appendChild(heightElement);
        
        Element noteModule = doc.createElement("note");
        noteModule.appendChild(doc.createTextNode(note));
        treasureBoxModule.appendChild(noteModule);
    }