public void output(OutputStream out){
  try {
    out.write(versionDecl.getBytes());
  }
 catch (  Exception e) {
  }
  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 ( OutputStream out ) { try { out . write ( versionDecl . getBytes ( ) ) ; } catch ( Exception e ) { } 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 outputstream
