This method of the Document class sets the version number stored in the <?XML ...?> tag.
public final void setVersion( String version );