public void ReloadSvnUrl(String xmlUrl) throws Exception {
		//从xml中读取name和svnUrl并存入jobMap
		DocumentBuilderFactory df = DocumentBuilderFactory.newInstance();
		DocumentBuilder db = df.newDocumentBuilder();
		Path xml = Paths.get(xmlUrl);
		Document doc = db.parse(xml.toFile());
		NodeList jobList = doc.getElementsByTagName("job");
		Map<String,String> jobMap = new HashMap<String,String>();
		for(int i=0;i<jobList.getLength();i++){
			Element job = (Element)jobList.item(i);
			String name = job.getElementsByTagName("name").item(0).getFirstChild().getNodeValue();
			String svnUrl = job.getElementsByTagName("svnUrl").item(0).getFirstChild().getNodeValue();
			
			jobMap.put(name, svnUrl);
		}
		
		WebDriver driver = OldFirefoxInit.init(ReadPros.getJenkins().getProperty("url"));
		login(driver);
		
		//获取所有的工程名 :jobNameList
		String script = "var tbody = document.getElementById('projectstatus').firstElementChild;"
				+ "var trs = tbody.children;"
				+ "var list = [];"
				+ "for(var i=0;i<trs.length-1;i++){"
				+ "   list[i]=trs[i+1].id;"
				+ "}"
				+ "return list;";
		@SuppressWarnings("unchecked")
		List<String> strsId = (ArrayList<String>)((JavascriptExecutor)driver).executeScript(script);
		List<String> jobNames = new ArrayList<String>();
		for(String each : strsId){
			jobNames.add(each.substring(4)); //得到所有工程名
		}
		Thread.sleep(1000);
		
		String jenkinsUrl = ReadPros.getJenkins().getProperty("url");
		String baseUrl = jenkinsUrl.substring(0,jenkinsUrl.lastIndexOf("/")+1);
		for(String each:jobNames){
			String jobUrl = baseUrl+"job/"+each+"/configure"; //每个job的配置页面
			driver.get(jobUrl);
			Thread.sleep(1000);
			
			String svnScript = "var svnInput = document.getElementById('svn.remote.loc');"
					+ "	var inputNodeList = document.getElementsByTagName('input');"
					+ "var svnRadio;"
					+ "for(var i=0;i<inputNodeList.length;i++){"
					+ "     svnRadio = inputNodeList.item(i); "
					+ "     if(svnRadio.name == 'scm'){"
					+ "           if(svnRadio.nextSibling.nodeValue.trim()=='Subversion'){"
					+ "              svnRadio.checked = 'true'; "  //点中svn单选按钮并没有实际效果,还需一下步骤
					+ "     		  var trs = document.getElementsByTagName('tr');"     
					+ "              for(var j=0;j<trs.length;j++){"
					+ "                       if(trs[j].getAttribute('nameref') && trs[j].getAttribute('nameref') == svnRadio.getAttribute('id')){"
					+ "                       trs[j].style=''; "
					+ "                    }"
					+ "               }"
					+ "				   document.getElementById('svn.remote.loc').value='"+jobMap.get(each)+"';"  
					+ "           }"
					+ "    }"
					+ "}";
			((JavascriptExecutor)driver).executeScript(svnScript);
			
			String saveButtonScript = "var buttonNodeList = document.getElementsByTagName('button');"
					+ "var saveNode ;"
					+ "for(var i=0;i<buttonNodeList.length;i++){"
					+ "	   var name = buttonNodeList[i].textContent;"
					+ "   if( name == 'Save'){"  
					+ "       saveNode=buttonNodeList[i];"
					+ "    }"
					+ "}"
					+ "return saveNode";
			WebElement saveEle  = (WebElement)((JavascriptExecutor)driver).executeScript(saveButtonScript);
			saveEle.click(); // 点击保存按钮
			
			Thread.sleep(2000);
		}
		
		driver.close();
	}