question: 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 ( ) ; }
target:  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