code: public void process(RootDoc root) throws IOException {
          // out.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
          out.println("<XMI xmi.version=\"1.1\" >");
  
          out.println(" <XMI.header>");
          out.println("  <XMI.metamodel href=\"/vol/acfiles7/egonw/SourceForge/CDK/cdk/reports/javadoc/test2.xmi\" version=\"1.1\" name=\"UML\" />");
          out.println("  <XMI.model href=\"/vol/acfiles7/egonw/SourceForge/CDK/cdk/reports/javadoc/test2.xmi\" version=\"1\" name=\"/vol/acfiles7/egonw/SourceForge/CDK/cdk/reports/javadoc/test2.xmi\" />");
          out.println(" </XMI.header>");
  
          out.println(" <XMI.content>");
          out.println("  <docsettings viewid=\"-1\" documentation=\"\" uniqueid=\"1\" />");
          out.println("  <umlobjects>");
          generateUMLClass(root.specifiedPackages());
          out.println("  </umlobjects>");
          out.println("  <diagrams/>");
          out.println("  <listview>");
          out.println("   <listitem open=\"1\" type=\"800\" id=\"-1\" label=\"Views\" >");
          generateLogicalView(root.specifiedPackages());
          out.println("    <listitem open=\"1\" type=\"802\" id=\"-1\" label=\"Use Case View\" />");
          out.println("   </listitem>");
          out.println("  </listview>");
          out.println(" </XMI.content>");
          out.println("</XMI>");
      }
docs: Method that serializes RootDoc objects containing the
  information from the Java source code.
  
  @param root a RootDoc