public XmlBuilder(String tName)
    {
        try {
            
        name=tName;
        docFactory=DocumentBuilderFactory.newInstance();
        docBuilder=docFactory.newDocumentBuilder();
        doc = docBuilder.newDocument();    
        gameModule = doc.createElement("game");
        doc.appendChild(gameModule);
        
        Attr attr = doc.createAttribute("title");
	attr.setValue(name);
        gameModule.setAttributeNode(attr);
        
        } catch (ParserConfigurationException ex) {
            Logger.getLogger(XmlBuilder.class.getName()).log(Level.SEVERE, null, ex);
        }
        campaignModule = doc.createElement("campaign");
        
        gameModule.appendChild(campaignModule);
    }