public static String parsedPageToHtml(ParsedPage pp){
  StringBuilder result=new StringBuilder();
  result.append(getHtmlHeader());
  if (pp != null) {
    result.append("<table class=\"ParsedPage\">\n" + "<tr><th class=\"ParsedPage\">ParsedPage: \n" + pp.getName() + "</th></tr>\n");
    result.append("<tr><td class=\"ParsedPage\">\n");
    for (    Section s : pp.getSections()) {
      result.append(sectionToHtml(s));
    }
    result.append("</td></tr>\n");
    if (pp.getCategoryElement() != null) {
      result.append("<tr><td class=\"ParsedPage\">\n");
      result.append("Categories:\n" + contentElementToHtml(pp.getCategoryElement()));
      result.append("</td></tr>\n");
    }
    if (pp.getLanguagesElement() != null) {
      result.append("<tr><td class=\"ParsedPage\">\n");
      result.append("Languages:\n" + contentElementToHtml(pp.getLanguagesElement()));
      result.append("</td></tr>\n");
    }
    result.append("</table>\n");
  }
  result.append(getHtmlFooter());
  return result.toString();
}

public static String parsedPageToHtml ( ParsedPage pp ) { StringBuilder result = new StringBuilder ( ) ; result . append ( getHtmlHeader ( ) ) ; if ( pp != null ) { result . append ( "<table class=\"ParsedPage\">\n" + "<tr><th class=\"ParsedPage\">ParsedPage: \n" + pp . getName ( ) + "</th></tr>\n" ) ; result . append ( "<tr><td class=\"ParsedPage\">\n" ) ; for ( Section s : pp . getSections ( ) ) { result . append ( sectionToHtml ( s ) ) ; } result . append ( "</td></tr>\n" ) ; if ( pp . getCategoryElement ( ) != null ) { result . append ( "<tr><td class=\"ParsedPage\">\n" ) ; result . append ( "Categories:\n" + contentElementToHtml ( pp . getCategoryElement ( ) ) ) ; result . append ( "</td></tr>\n" ) ; } if ( pp . getLanguagesElement ( ) != null ) { result . append ( "<tr><td class=\"ParsedPage\">\n" ) ; result . append ( "Languages:\n" + contentElementToHtml ( pp . getLanguagesElement ( ) ) ) ; result . append ( "</td></tr>\n" ) ; } result . append ( "</table>\n" ) ; } result . append ( getHtmlFooter ( ) ) ; return result . toString ( ) ; }
generates html output for a parsedpage .
