code: private void generateUMLClass(ClassDoc[] classes, String pkgname) throws IOException {
          for (int i=0; i<classes.length; i++) {
              ClassDoc c = classes[i];
              out.println("    <UML:Class stereotype=\"\" " +
                                       "package=\"" + pkgname + "\" " +
                                       "xmi.id=\"" + i + "\" " +
                                       "abstract=\"0\" " +
                                       "documentation=\"\" " +
                                       "name=\"" + c.name() + "\" " +
                                       "scope=\"200\">");
              MethodDoc[] methods = c.methods();
              for (int j=0; j<methods.length; j++) {
                  MethodDoc md = methods[j];
                  out.println("     <UML:Operation stereotype=\"\" " +
                                                  "xmi.id=\"" + (1000*i + j) + "\" " +
                                                  "type=\"void\" " +
                                                  "abstract=\"0\" " +
                                                  "documentation=\"\" " +
                                                  "name=\"" + md.name() + "\" " +
                                                  "scope=\"200\" />");
              }
              out.println("    </UML:Class>");
          }
      }
docs: Method that serializes ClassDoc objects into &lt;UML:Class> elements.
  
  @param pkgs an array of ClassDoc objects