Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Element eventRegister = doc.createElement("EventRegister");
- rootElement.appendChild(eventRegister);
- for(Event e : MainApp.getExpo().getEventsRegister().getEventsList()) {
- Element event = doc.createElement("Event");
- eventRegister.appendChild(event);
- Element title = doc.createElement("Title");
- title.appendChild(doc.createTextNode(e.getTitle()));
- event.appendChild(title);
- Element description = doc.createElement("Description");
- description.appendChild(doc.createTextNode(e.getDescription()));
- event.appendChild(description);
- Element date = doc.createElement("Date");
- date.appendChild(doc.createTextNode(e.getDate()));
- event.appendChild(date);
- Element location = doc.createElement("Location");
- location.appendChild(doc.createTextNode(e.getLocation()));
- event.appendChild(location);
- Element appPeriod = doc.createElement("Application Submission Period");
- event.appendChild(appPeriod);
- Element applicationSubmissionBegin = doc.createElement("Application Submission Begin");
- applicationSubmissionBegin.appendChild(doc.createTextNode(e.getApplicationSubmissionPeriod().getApplicationSubmissionBegin()));
- appPeriod.appendChild(applicationSubmissionBegin);
- Element applicationSubmissionEnd = doc.createElement("Application Submission End");
- applicationSubmissionEnd.appendChild(doc.createTextNode(e.getApplicationSubmissionPeriod().getApplicationSubmissionEnd()));
- appPeriod.appendChild(applicationSubmissionEnd);
- Element applicationRegister = doc.createElement("Application Register");
- event.appendChild(applicationRegister);
- Element reviewList = doc.createElement("Review List");
- applicationRegister.appendChild(reviewList);
- for(Application ap : e.getApplicationRegister().getReviewList()) {
- Element application = doc.createElement("Application");
- reviewList.appendChild(application);
- Element tradename = doc.createElement("Trade Name");
- tradename.appendChild(doc.createTextNode(ap.getTradeName()));
- application.appendChild(tradename);
- Element vatnumber = doc.createElement("Vat Number");
- vatnumber.appendChild(doc.createTextNode(Integer.toString(ap.getVATNumber())));
- application.appendChild(vatnumber);
- Element phonenumber = doc.createElement("Phone Number");
- phonenumber.appendChild(doc.createTextNode(Integer.toString(ap.getPhoneNumber())));
- application.appendChild(phonenumber);
- Element standarea = doc.createElement("Stand Area");
- standarea.appendChild(doc.createTextNode(Double.toString(ap.getStandArea())));
- application.appendChild(standarea);
- Element productsdisplayed = doc.createElement("Products Displayed");
- productsdisplayed.appendChild(doc.createTextNode(ap.getProductsDisplayed().toString()));
- application.appendChild(productsdisplayed);
- Element numberinvitations = doc.createElement("Number of Invitations");
- numberinvitations.appendChild(doc.createTextNode(Integer.toString(ap.getNumberInvitations())));
- application.appendChild(numberinvitations);
- Element applicationtopics = doc.createElement("Application Topics");
- applicationtopics.appendChild(doc.createTextNode(ap.getApplicationTopics().toString()));
- application.appendChild(applicationtopics);
- Element workshoplist = doc.createElement("Workshop List");
- application.appendChild(workshoplist);
- Element waitinglist = doc.createElement("Waiting List");
- workshoplist.appendChild(waitinglist);
- for(Workshop w : ap.getWorkshopsList().getWaitingList()) {
- Element workshop = doc.createElement("Workshop");
- waitinglist.appendChild(workshop);
- Element workshopdescription = doc.createElement("Workshop Description");
- workshopdescription.appendChild(doc.createTextNode(w.getDescription()));
- workshop.appendChild(workshopdescription);
- Element workshopduration = doc.createElement("Workshop Duration");
- workshopduration.appendChild(doc.createTextNode(w.getDuration()));
- workshop.appendChild(workshopduration);
- Element workshopequipment = doc.createElement("Workshop Equipment");
- workshopequipment.appendChild(doc.createTextNode(w.getEquipment().toString()));
- }
- Element acceptedlist = doc.createElement("Accepted List");
- workshoplist.appendChild(acceptedlist);
- for(Workshop w : ap.getWorkshopsList().getAcceptedList()) {
- Element workshop = doc.createElement("Workshop");
- waitinglist.appendChild(workshop);
- Element workshopdescription = doc.createElement("Workshop Description");
- workshopdescription.appendChild(doc.createTextNode(w.getDescription()));
- workshop.appendChild(workshopdescription);
- Element workshopduration = doc.createElement("Workshop Duration");
- workshopduration.appendChild(doc.createTextNode(w.getDuration()));
- workshop.appendChild(workshopduration);
- Element workshopequipment = doc.createElement("Workshop Equipment");
- workshopequipment.appendChild(doc.createTextNode(w.getEquipment().toString()));
- }
- Element declinedlist = doc.createElement("Declined List");
- workshoplist.appendChild(declinedlist);
- for(Workshop w : ap.getWorkshopsList().getDeclinedList()) {
- Element workshop = doc.createElement("Workshop");
- waitinglist.appendChild(workshop);
- Element workshopdescription = doc.createElement("Workshop Description");
- workshopdescription.appendChild(doc.createTextNode(w.getDescription()));
- workshop.appendChild(workshopdescription);
- Element workshopduration = doc.createElement("Workshop Duration");
- workshopduration.appendChild(doc.createTextNode(w.getDuration()));
- workshop.appendChild(workshopduration);
- Element workshopequipment = doc.createElement("Workshop Equipment");
- workshopequipment.appendChild(doc.createTextNode(w.getEquipment().toString()));
- }
- Element stand = doc.createElement("Stand");
- application.appendChild(stand);
- Element standDescription = doc.createElement("Description");
- standDescription.appendChild(doc.createTextNode(ap.getStand().getDescription()));
- stand.appendChild(standDescription);
- Element area = doc.createElement("Area");
- area.appendChild(doc.createTextNode(Double.toString(ap.getStand().getArea())));
- stand.appendChild(area);
- Element applicationrepresentative = doc.createElement("Application Representative");
- application.appendChild(applicationrepresentative);
- Element user = doc.createElement("User");
- applicationrepresentative.appendChild(user);
- Element name = doc.createElement("Name");
- name.appendChild(doc.createTextNode(ap.getRepresentative().getName()));
- user.appendChild(name);
- Element email = doc.createElement("Email");
- email.appendChild(doc.createTextNode(ap.getRepresentative().getEmail()));
- user.appendChild(email);
- Element username = doc.createElement("Username");
- username.appendChild(doc.createTextNode(ap.getRepresentative().getUsername()));
- user.appendChild(username);
- Element password = doc.createElement("Password");
- password.appendChild(doc.createTextNode(Arrays.toString(ap.getRepresentative().getPassword())));
- user.appendChild(password);
- }
- Element acceptedList = doc.createElement("Accepted List");
- applicationRegister.appendChild(acceptedList);
- for(Application ap : e.getApplicationRegister().getAcceptedList()) {
- Element application = doc.createElement("Application");
- reviewList.appendChild(application);
- Element tradename = doc.createElement("Trade Name");
- tradename.appendChild(doc.createTextNode(ap.getTradeName()));
- application.appendChild(tradename);
- Element vatnumber = doc.createElement("Vat Number");
- vatnumber.appendChild(doc.createTextNode(Integer.toString(ap.getVATNumber())));
- application.appendChild(vatnumber);
- Element phonenumber = doc.createElement("Phone Number");
- phonenumber.appendChild(doc.createTextNode(Integer.toString(ap.getPhoneNumber())));
- application.appendChild(phonenumber);
- Element standarea = doc.createElement("Stand Area");
- standarea.appendChild(doc.createTextNode(Double.toString(ap.getStandArea())));
- application.appendChild(standarea);
- Element productsdisplayed = doc.createElement("Products Displayed");
- productsdisplayed.appendChild(doc.createTextNode(ap.getProductsDisplayed().toString()));
- application.appendChild(productsdisplayed);
- Element numberinvitations = doc.createElement("Number of Invitations");
- numberinvitations.appendChild(doc.createTextNode(Integer.toString(ap.getNumberInvitations())));
- application.appendChild(numberinvitations);
- Element applicationtopics = doc.createElement("Application Topics");
- applicationtopics.appendChild(doc.createTextNode(ap.getApplicationTopics().toString()));
- application.appendChild(applicationtopics);
- Element workshoplist = doc.createElement("Workshop List");
- application.appendChild(workshoplist);
- Element waitinglist = doc.createElement("Waiting List");
- workshoplist.appendChild(waitinglist);
- for(Workshop w : ap.getWorkshopsList().getWaitingList()) {
- Element workshop = doc.createElement("Workshop");
- waitinglist.appendChild(workshop);
- Element workshopdescription = doc.createElement("Workshop Description");
- workshopdescription.appendChild(doc.createTextNode(w.getDescription()));
- workshop.appendChild(workshopdescription);
- Element workshopduration = doc.createElement("Workshop Duration");
- workshopduration.appendChild(doc.createTextNode(w.getDuration()));
- workshop.appendChild(workshopduration);
- Element workshopequipment = doc.createElement("Workshop Equipment");
- workshopequipment.appendChild(doc.createTextNode(w.getEquipment().toString()));
- }
- Element acceptedlist = doc.createElement("Accepted List");
- workshoplist.appendChild(acceptedlist);
- for(Workshop w : ap.getWorkshopsList().getAcceptedList()) {
- Element workshop = doc.createElement("Workshop");
- waitinglist.appendChild(workshop);
- Element workshopdescription = doc.createElement("Workshop Description");
- workshopdescription.appendChild(doc.createTextNode(w.getDescription()));
- workshop.appendChild(workshopdescription);
- Element workshopduration = doc.createElement("Workshop Duration");
- workshopduration.appendChild(doc.createTextNode(w.getDuration()));
- workshop.appendChild(workshopduration);
- Element workshopequipment = doc.createElement("Workshop Equipment");
- workshopequipment.appendChild(doc.createTextNode(w.getEquipment().toString()));
- }
- Element declinedlist = doc.createElement("Declined List");
- workshoplist.appendChild(declinedlist);
- for(Workshop w : ap.getWorkshopsList().getDeclinedList()) {
- Element workshop = doc.createElement("Workshop");
- waitinglist.appendChild(workshop);
- Element workshopdescription = doc.createElement("Workshop Description");
- workshopdescription.appendChild(doc.createTextNode(w.getDescription()));
- workshop.appendChild(workshopdescription);
- Element workshopduration = doc.createElement("Workshop Duration");
- workshopduration.appendChild(doc.createTextNode(w.getDuration()));
- workshop.appendChild(workshopduration);
- Element workshopequipment = doc.createElement("Workshop Equipment");
- workshopequipment.appendChild(doc.createTextNode(w.getEquipment().toString()));
- }
- Element stand = doc.createElement("Stand");
- application.appendChild(stand);
- Element standDescription = doc.createElement("Description");
- standDescription.appendChild(doc.createTextNode(ap.getStand().getDescription()));
- stand.appendChild(standDescription);
- Element area = doc.createElement("Area");
- area.appendChild(doc.createTextNode(Double.toString(ap.getStand().getArea())));
- stand.appendChild(area);
- Element applicationrepresentative = doc.createElement("Application Representative");
- application.appendChild(applicationrepresentative);
- Element user = doc.createElement("User");
- applicationrepresentative.appendChild(user);
- Element name = doc.createElement("Name");
- name.appendChild(doc.createTextNode(ap.getRepresentative().getName()));
- user.appendChild(name);
- Element email = doc.createElement("Email");
- email.appendChild(doc.createTextNode(ap.getRepresentative().getEmail()));
- user.appendChild(email);
- Element username = doc.createElement("Username");
- username.appendChild(doc.createTextNode(ap.getRepresentative().getUsername()));
- user.appendChild(username);
- Element password = doc.createElement("Password");
- password.appendChild(doc.createTextNode(Arrays.toString(ap.getRepresentative().getPassword())));
- user.appendChild(password);
- }
- Element declinedList = doc.createElement("Declined List");
- applicationRegister.appendChild(declinedList);
- for(Application ap : e.getApplicationRegister().getDeclinedList()) {
- Element application = doc.createElement("Application");
- reviewList.appendChild(application);
- Element tradename = doc.createElement("Trade Name");
- tradename.appendChild(doc.createTextNode(ap.getTradeName()));
- application.appendChild(tradename);
- Element vatnumber = doc.createElement("Vat Number");
- vatnumber.appendChild(doc.createTextNode(Integer.toString(ap.getVATNumber())));
- application.appendChild(vatnumber);
- Element phonenumber = doc.createElement("Phone Number");
- phonenumber.appendChild(doc.createTextNode(Integer.toString(ap.getPhoneNumber())));
- application.appendChild(phonenumber);
- Element standarea = doc.createElement("Stand Area");
- standarea.appendChild(doc.createTextNode(Double.toString(ap.getStandArea())));
- application.appendChild(standarea);
- Element productsdisplayed = doc.createElement("Products Displayed");
- productsdisplayed.appendChild(doc.createTextNode(ap.getProductsDisplayed().toString()));
- application.appendChild(productsdisplayed);
- Element numberinvitations = doc.createElement("Number of Invitations");
- numberinvitations.appendChild(doc.createTextNode(Integer.toString(ap.getNumberInvitations())));
- application.appendChild(numberinvitations);
- Element applicationtopics = doc.createElement("Application Topics");
- applicationtopics.appendChild(doc.createTextNode(ap.getApplicationTopics().toString()));
- application.appendChild(applicationtopics);
- Element workshoplist = doc.createElement("Workshop List");
- application.appendChild(workshoplist);
- Element waitinglist = doc.createElement("Waiting List");
- workshoplist.appendChild(waitinglist);
- for(Workshop w : ap.getWorkshopsList().getWaitingList()) {
- Element workshop = doc.createElement("Workshop");
- waitinglist.appendChild(workshop);
- Element workshopdescription = doc.createElement("Workshop Description");
- workshopdescription.appendChild(doc.createTextNode(w.getDescription()));
- workshop.appendChild(workshopdescription);
- Element workshopduration = doc.createElement("Workshop Duration");
- workshopduration.appendChild(doc.createTextNode(w.getDuration()));
- workshop.appendChild(workshopduration);
- Element workshopequipment = doc.createElement("Workshop Equipment");
- workshopequipment.appendChild(doc.createTextNode(w.getEquipment().toString()));
- }
- Element acceptedlist = doc.createElement("Accepted List");
- workshoplist.appendChild(acceptedlist);
- for(Workshop w : ap.getWorkshopsList().getAcceptedList()) {
- Element workshop = doc.createElement("Workshop");
- waitinglist.appendChild(workshop);
- Element workshopdescription = doc.createElement("Workshop Description");
- workshopdescription.appendChild(doc.createTextNode(w.getDescription()));
- workshop.appendChild(workshopdescription);
- Element workshopduration = doc.createElement("Workshop Duration");
- workshopduration.appendChild(doc.createTextNode(w.getDuration()));
- workshop.appendChild(workshopduration);
- Element workshopequipment = doc.createElement("Workshop Equipment");
- workshopequipment.appendChild(doc.createTextNode(w.getEquipment().toString()));
- }
- Element declinedlist = doc.createElement("Declined List");
- workshoplist.appendChild(declinedlist);
- for(Workshop w : ap.getWorkshopsList().getDeclinedList()) {
- Element workshop = doc.createElement("Workshop");
- waitinglist.appendChild(workshop);
- Element workshopdescription = doc.createElement("Workshop Description");
- workshopdescription.appendChild(doc.createTextNode(w.getDescription()));
- workshop.appendChild(workshopdescription);
- Element workshopduration = doc.createElement("Workshop Duration");
- workshopduration.appendChild(doc.createTextNode(w.getDuration()));
- workshop.appendChild(workshopduration);
- Element workshopequipment = doc.createElement("Workshop Equipment");
- workshopequipment.appendChild(doc.createTextNode(w.getEquipment().toString()));
- }
- Element stand = doc.createElement("Stand");
- application.appendChild(stand);
- Element standDescription = doc.createElement("Description");
- standDescription.appendChild(doc.createTextNode(ap.getStand().getDescription()));
- stand.appendChild(standDescription);
- Element area = doc.createElement("Area");
- area.appendChild(doc.createTextNode(Double.toString(ap.getStand().getArea())));
- stand.appendChild(area);
- Element applicationrepresentative = doc.createElement("Application Representative");
- application.appendChild(applicationrepresentative);
- Element user = doc.createElement("User");
- applicationrepresentative.appendChild(user);
- Element name = doc.createElement("Name");
- name.appendChild(doc.createTextNode(ap.getRepresentative().getName()));
- user.appendChild(name);
- Element email = doc.createElement("Email");
- email.appendChild(doc.createTextNode(ap.getRepresentative().getEmail()));
- user.appendChild(email);
- Element username = doc.createElement("Username");
- username.appendChild(doc.createTextNode(ap.getRepresentative().getUsername()));
- user.appendChild(username);
- Element password = doc.createElement("Password");
- password.appendChild(doc.createTextNode(Arrays.toString(ap.getRepresentative().getPassword())));
- user.appendChild(password);
- }
- Element pendingList = doc.createElement("Pending List");
- applicationRegister.appendChild(pendingList);
- for(Application ap : e.getApplicationRegister().getPendingList()) {
- Element application = doc.createElement("Application");
- reviewList.appendChild(application);
- Element tradename = doc.createElement("Trade Name");
- tradename.appendChild(doc.createTextNode(ap.getTradeName()));
- application.appendChild(tradename);
- Element vatnumber = doc.createElement("Vat Number");
- vatnumber.appendChild(doc.createTextNode(Integer.toString(ap.getVATNumber())));
- application.appendChild(vatnumber);
- Element phonenumber = doc.createElement("Phone Number");
- phonenumber.appendChild(doc.createTextNode(Integer.toString(ap.getPhoneNumber())));
- application.appendChild(phonenumber);
- Element standarea = doc.createElement("Stand Area");
- standarea.appendChild(doc.createTextNode(Double.toString(ap.getStandArea())));
- application.appendChild(standarea);
- Element productsdisplayed = doc.createElement("Products Displayed");
- productsdisplayed.appendChild(doc.createTextNode(ap.getProductsDisplayed().toString()));
- application.appendChild(productsdisplayed);
- Element numberinvitations = doc.createElement("Number of Invitations");
- numberinvitations.appendChild(doc.createTextNode(Integer.toString(ap.getNumberInvitations())));
- application.appendChild(numberinvitations);
- Element applicationtopics = doc.createElement("Application Topics");
- applicationtopics.appendChild(doc.createTextNode(ap.getApplicationTopics().toString()));
- application.appendChild(applicationtopics);
- Element workshoplist = doc.createElement("Workshop List");
- application.appendChild(workshoplist);
- Element waitinglist = doc.createElement("Waiting List");
- workshoplist.appendChild(waitinglist);
- for(Workshop w : ap.getWorkshopsList().getWaitingList()) {
- Element workshop = doc.createElement("Workshop");
- waitinglist.appendChild(workshop);
- Element workshopdescription = doc.createElement("Workshop Description");
- workshopdescription.appendChild(doc.createTextNode(w.getDescription()));
- workshop.appendChild(workshopdescription);
- Element workshopduration = doc.createElement("Workshop Duration");
- workshopduration.appendChild(doc.createTextNode(w.getDuration()));
- workshop.appendChild(workshopduration);
- Element workshopequipment = doc.createElement("Workshop Equipment");
- workshopequipment.appendChild(doc.createTextNode(w.getEquipment().toString()));
- }
- Element acceptedlist = doc.createElement("Accepted List");
- workshoplist.appendChild(acceptedlist);
- for(Workshop w : ap.getWorkshopsList().getAcceptedList()) {
- Element workshop = doc.createElement("Workshop");
- waitinglist.appendChild(workshop);
- Element workshopdescription = doc.createElement("Workshop Description");
- workshopdescription.appendChild(doc.createTextNode(w.getDescription()));
- workshop.appendChild(workshopdescription);
- Element workshopduration = doc.createElement("Workshop Duration");
- workshopduration.appendChild(doc.createTextNode(w.getDuration()));
- workshop.appendChild(workshopduration);
- Element workshopequipment = doc.createElement("Workshop Equipment");
- workshopequipment.appendChild(doc.createTextNode(w.getEquipment().toString()));
- }
- Element declinedlist = doc.createElement("Declined List");
- workshoplist.appendChild(declinedlist);
- for(Workshop w : ap.getWorkshopsList().getDeclinedList()) {
- Element workshop = doc.createElement("Workshop");
- waitinglist.appendChild(workshop);
- Element workshopdescription = doc.createElement("Workshop Description");
- workshopdescription.appendChild(doc.createTextNode(w.getDescription()));
- workshop.appendChild(workshopdescription);
- Element workshopduration = doc.createElement("Workshop Duration");
- workshopduration.appendChild(doc.createTextNode(w.getDuration()));
- workshop.appendChild(workshopduration);
- Element workshopequipment = doc.createElement("Workshop Equipment");
- workshopequipment.appendChild(doc.createTextNode(w.getEquipment().toString()));
- }
- Element stand = doc.createElement("Stand");
- application.appendChild(stand);
- Element standDescription = doc.createElement("Description");
- standDescription.appendChild(doc.createTextNode(ap.getStand().getDescription()));
- stand.appendChild(standDescription);
- Element area = doc.createElement("Area");
- area.appendChild(doc.createTextNode(Double.toString(ap.getStand().getArea())));
- stand.appendChild(area);
- Element applicationrepresentative = doc.createElement("Application Representative");
- application.appendChild(applicationrepresentative);
- Element user = doc.createElement("User");
- applicationrepresentative.appendChild(user);
- Element name = doc.createElement("Name");
- name.appendChild(doc.createTextNode(ap.getRepresentative().getName()));
- user.appendChild(name);
- Element email = doc.createElement("Email");
- email.appendChild(doc.createTextNode(ap.getRepresentative().getEmail()));
- user.appendChild(email);
- Element username = doc.createElement("Username");
- username.appendChild(doc.createTextNode(ap.getRepresentative().getUsername()));
- user.appendChild(username);
- Element password = doc.createElement("Password");
- password.appendChild(doc.createTextNode(Arrays.toString(ap.getRepresentative().getPassword())));
- user.appendChild(password);
- }
- Element standRegister = doc.createElement("Stand Register");
- event.appendChild(standRegister);
- for (Stand s : e.getStandsRegister().getStandsRegister()) {
- Element stand = doc.createElement("Stand");
- standRegister.appendChild(stand);
- Element standDescription = doc.createElement("Description");
- standDescription.appendChild(doc.createTextNode(s.getDescription()));
- stand.appendChild(standDescription);
- Element area = doc.createElement("Area");
- area.appendChild(doc.createTextNode(Double.toString(s.getArea())));
- stand.appendChild(area);
- }
- Element userRegisterEvent = doc.createElement("UserRegister");
- event.appendChild(userRegisterEvent);
- for(User u : e.getUserRegister().getUserRegister()) {
- Element user = doc.createElement("User");
- userRegisterEvent.appendChild(user);
- Element name = doc.createElement("Name");
- name.appendChild(doc.createTextNode(u.getName()));
- userRegisterEvent.appendChild(name);
- Element email = doc.createElement("Email");
- email.appendChild(doc.createTextNode(u.getEmail()));
- userRegisterEvent.appendChild(email);
- Element username = doc.createElement("Username");
- username.appendChild(doc.createTextNode(u.getUsername()));
- userRegisterEvent.appendChild(username);
- Element password = doc.createElement("Password");
- password.appendChild(doc.createTextNode(Arrays.toString(u.getPassword())));
- userRegisterEvent.appendChild(password);
- }
- Element organizersList = doc.createElement("Organizer List");
- event.appendChild(organizersList);
- for(User or : e.getOrganizersList()) {
- Element user = doc.createElement("User");
- organizersList.appendChild(user);
- Element name = doc.createElement("Name");
- name.appendChild(doc.createTextNode(or.getName()));
- organizersList.appendChild(name);
- Element email = doc.createElement("Email");
- email.appendChild(doc.createTextNode(or.getEmail()));
- organizersList.appendChild(email);
- Element username = doc.createElement("Username");
- username.appendChild(doc.createTextNode(or.getUsername()));
- organizersList.appendChild(username);
- Element password = doc.createElement("Password");
- password.appendChild(doc.createTextNode(Arrays.toString(or.getPassword())));
- organizersList.appendChild(password);
- }
- Element staffList = doc.createElement("Staff List");
- event.appendChild(staffList);
- for(User stf : e.getStaffList()) {
- Element user = doc.createElement("User");
- staffList.appendChild(user);
- Element name = doc.createElement("Name");
- name.appendChild(doc.createTextNode(stf.getName()));
- staffList.appendChild(name);
- Element email = doc.createElement("Email");
- email.appendChild(doc.createTextNode(stf.getEmail()));
- staffList.appendChild(email);
- Element username = doc.createElement("Username");
- username.appendChild(doc.createTextNode(stf.getUsername()));
- staffList.appendChild(username);
- Element password = doc.createElement("Password");
- password.appendChild(doc.createTextNode(Arrays.toString(stf.getPassword())));
- staffList.appendChild(password);
- }
- Element eventManager = doc.createElement("Event Manager");
- event.appendChild(eventManager);
- Element user = doc.createElement("User");
- eventManager.appendChild(user);
- Element name = doc.createElement("Name");
- name.appendChild(doc.createTextNode(e.getEventManager().getName()));
- eventManager.appendChild(name);
- Element email = doc.createElement("Email");
- email.appendChild(doc.createTextNode(e.getEventManager().getEmail()));
- eventManager.appendChild(email);
- Element username = doc.createElement("Username");
- username.appendChild(doc.createTextNode(e.getEventManager().getUsername()));
- eventManager.appendChild(username);
- Element password = doc.createElement("Password");
- password.appendChild(doc.createTextNode(Arrays.toString(e.getEventManager().getPassword())));
- eventManager.appendChild(password);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement