code: public static void setVersion(Document doc, Version version) {
  	Element root = doc.getDocumentElement();
  	root.setAttribute("version", version.getMajor() + "." + version.getMinor());
  
      }
docs: /*
  public void setVersion(double version) { setVersion(doc,version);
  
  }