public void output(PrintWriter out){
  out.write(versionDecl);
  for (int i=0; i < prolog.size(); i++) {
    ConcreteElement e=(ConcreteElement)prolog.elementAt(i);
    e.output(out);
  }
  if (content != null)   content.output(out);
}

public void output ( PrintWriter out ) { out . write ( versionDecl ) ; for ( int i = 0 ; i < prolog . size ( ) ; i ++ ) { ConcreteElement e = ( ConcreteElement ) prolog . elementAt ( i ) ; e . output ( out ) ; } if ( content != null ) content . output ( out ) ; }
write the document to the printewriter
