Package org.dom4j

Examples of org.dom4j.Document


      throws DocumentException, DaoTaskException {
    String pageURL = getPageURL(folderPath);
    if (pageURL == null) {
      return false;
    }
    Document doc = DocumentHelper.parseText(xml);
    readPage(doc.getRootElement());
    return true;
  }
View Full Code Here


      throws DocumentException, DaoTaskException {
    String pageURL = getPageURL(folderPath);
    if (pageURL == null) {
      return false;
    }
    Document doc = DocumentHelper.parseText(xml);
    readComments(doc.getRootElement(), pageURL);
    return true;
  }
View Full Code Here

      throws DocumentException {
    String pageURL = getPageURL(folderPath);
    if (pageURL == null) {
      return false;
    }
    Document doc = DocumentHelper.parseText(xml);
    getPagePermissionExporter().readPagePermissions(doc.getRootElement(),
        pageURL);
    return true;
  }
View Full Code Here

      throws DocumentException, DaoTaskException {
    String pageURL = getPageURL(folderPath);
    if (pageURL == null) {
      return false;
    }
    Document doc = DocumentHelper.parseText(xml);
    readTags(doc.getRootElement(), pageURL);
    return true;
  }
View Full Code Here

        long callingResId = userCourseEnv.getCourseEnvironment().getCourseResourceableId().longValue();
        String callingResDetail = courseNode.getIdent();
        assessmentID = IQManager.getInstance().getLastAssessmentID(ureq.getIdentity(), callingResId, callingResDetail);
      }
      if(assessmentID!=null && !assessmentID.equals("")) {
        Document doc = IQManager.getInstance().getResultsReportingFromFile(ureq.getIdentity(), type, assessmentID);
        //StringBuilder resultsHTML = LocalizedXSLTransformer.getInstance(ureq.getLocale()).renderResults(doc);
        String summaryConfig = (String)modConfig.get(IQEditController.CONFIG_KEY_SUMMARY);
        int summaryType = AssessmentInstance.getSummaryType(summaryConfig);
        String resultsHTML = IQManager.getInstance().transformResultsReporting(doc, ureq.getLocale(), summaryType);
        myContent.contextPut("displayreporting", resultsHTML);
View Full Code Here

    super(factory);
  }
 
  @Override
  public String createConfigXML() {
    Document doc = DocumentHelper.createDocument();
    Element configElement = doc.addElement("config");
    createConfigXML(configElement);
    return doc.asXML();
  }   
View Full Code Here

   * @throws DocumentException
   * @throws DaoTaskException
   */
  public void readConfigFile(String xml) throws DocumentException,
      DaoTaskException {
    Document doc = DocumentHelper.parseText(xml);
    readConfigs(doc.getRootElement());
  }
View Full Code Here

    super(factory);
  }
 
  @Override
  public String createXML() {
    Document doc = DocumentHelper.createDocument();
    Element e = doc.addElement("seo-urls");
    List<SeoUrlEntity> list = getDao().getSeoUrlDao().select();
    for (SeoUrlEntity seo : list) {
      Element seoElement = e.addElement("seo-url");
      seoElement.addElement("from").setText(seo.getFromLink());
      seoElement.addElement("to").setText(seo.getToLink());
    }
    return doc.asXML();
  }
View Full Code Here

   * @throws DocumentException
   * @throws DaoTaskException
   */
  public void read(String xml) throws DocumentException,
      DaoTaskException {
    Document doc = DocumentHelper.parseText(xml);
    read(doc.getRootElement());
  }
View Full Code Here

    super(factory);
  }
 
  @Override
  public String createStructuresXML() {
    Document doc = DocumentHelper.createDocument();
    Element structuresElement = doc.addElement("structures");
    createStructuresXML(structuresElement);
    return doc.asXML();
  }
View Full Code Here

TOP

Related Classes of org.dom4j.Document

Copyright © 2018 www.massapicom. 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.