Package org.dom4j

Examples of org.dom4j.Document.addElement()


  }
 
  @Override
  public String createPluginsXML() {
    Document doc = DocumentHelper.createDocument();
    Element pluginsElement = doc.addElement("plugins");
    createPluginsXML(pluginsElement);
    return doc.asXML();
  }

  private void createPluginsXML(Element pluginsElement) {
View Full Code Here


  }
 
  @Override
  public String createUsersXML() {
    Document doc = DocumentHelper.createDocument();
    Element usersElement = doc.addElement("users");
    createUsersXML(usersElement);
    return doc.asXML();
  }

  private void createUsersXML(Element usersElement) {
View Full Code Here

  }
 
  @Override
  public String createXML() {
    Document doc = DocumentHelper.createDocument();
    Element root = doc.addElement("dependencies");
    List<PageDependencyEntity> list = getDao().getPageDependencyDao().select();
    for (PageDependencyEntity entity : list) {
      Element itemElement = root.addElement("item");
      itemElement.addElement("page").setText(entity.getPage());
      itemElement.addElement("dependency").setText(entity.getDependency());
View Full Code Here

  }
 
  @Override
  public String createXML() {
    Document doc = DocumentHelper.createDocument();
    Element element = doc.addElement("tags");
    List<TreeItemDecorator<TagEntity>> list = getTagTreeRoots();
    for (TreeItemDecorator<TagEntity> tag : list) {
      createTagXML(element, tag);
    }
    return doc.asXML();
View Full Code Here

    DocumentType type = new DOMDocumentType();
    type.setElementName(DOCUMENT_ROOT);
    type.setSystemID(DOCUMENT_DTD);
   
    tmp.setDocType(type);
    Element questestinterop = tmp.addElement(DOCUMENT_ROOT);
    this.assessment.addToElement(questestinterop);
    return tmp;
  }
 
  /**
 
View Full Code Here

    getDao().getFormDataDao().save(formData);
    formData.setUuid(formData.getId().toString());
    Map<String, String> filesMap = saveFormDataFiles(formData, files);
    List<FieldEntity> fields = getDao().getFieldDao().getByForm(form);
    Document doc = DocumentHelper.createDocument();
    Element root = doc.addElement("formData");
    for (FieldEntity field: fields) {
      String value = parameters.containsKey(field.getName()) ?
          parameters.get(field.getName()) : "";
      if (field.getFieldType().equals(FieldType.FILE)
        && filesMap.containsKey(field.getName())) {
View Full Code Here

        "This File is auto-generated by the Backup Tool \n" +
        "you should use the BackupPanel to modify or change this file \n" +
        "see http://code.google.com/p/openmeetings/wiki/BackupPanel for Details \n" +
        "###############################################");
   
    Element root = document.addElement("root");
   
    Element users = root.addElement("users");

    for (Iterator<Users> it = uList.iterator();it.hasNext();) {
      Users u = it.next();
View Full Code Here

        document.addComment(
            "###############################################\n" +
            "OpenMeetings Calendar \n" +
            "###############################################");
       
        Element vcalendar = document.addElement("vcalendar");
       
        Element year = vcalendar.addElement("year"+yearStr);
        Element month = year.addElement("month"+monthStr);
       
        int previousDay = 0;
View Full Code Here

          "This File is auto-generated by the Backup Tool \n" +
          "you should use the BackupPanel to modify or change this file \n" +
          "see http://code.google.com/p/openmeetings/wiki/BackupPanel for Details \n" +
          "###############################################");
     
      Element root = document.addElement("root");
     
      Element organisations = root.addElement("organisations");
     
      Element organisation1 = organisations.addElement("organisation");
     
View Full Code Here

        "This File is auto-generated by the Backup Tool \n" +
        "you should use the BackupPanel to modify or change this file \n" +
        "see http://code.google.com/p/openmeetings/wiki/BackupPanel for Details \n" +
        "###############################################");
   
    Element root = document.addElement("root");
   
    Element appointments = root.addElement("appointments");
   
    for (Iterator<Appointment> it = aList.iterator();it.hasNext();) {
      Appointment a = it.next();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.