public XMLDocument(double version,boolean standalone){
  prolog=new Vector<Object>(2);
  StringBuffer versionStr=new StringBuffer();
  versionStr.append("<?xml version=\"");
  versionStr.append(version);
  versionStr.append("\" standalone=\"");
  if (standalone)   versionStr.append("yes\"?>");
 else   versionStr.append("no\"?>\n");
  this.versionDecl=versionStr.toString();
}

public XMLDocument ( double version , boolean standalone ) { prolog = new Vector < Object > ( 2 ) ; StringBuffer versionStr = new StringBuffer ( ) ; versionStr . append ( "<?xml version=\"" ) ; versionStr . append ( version ) ; versionStr . append ( "\" standalone=\"" ) ; if ( standalone ) versionStr . append ( "yes\"?>" ) ; else versionStr . append ( "no\"?>\n" ) ; this . versionDecl = versionStr . toString ( ) ; }
this sets the document up . since an xml document can be pretty much anything , all this does is create the xml instruction with the version specified , and identifies the document as standalone if set
