Code example for Element

Methods: setAttribute

0
 
		el.setAttribute("value", a_PRData.getDomainOrRealm());
		elroot.appendChild(el);
 
		el = doc.createElement("OutboundProxy");
		el.setAttribute("use", Boolean.toString(a_PRData.isUseProxy()));
		el.setAttribute("host", a_PRData.getProxyURI().getHost());
		el.setAttribute("port", Integer.toString(a_PRData.getProxyURI()
				.getPort())); 
 
		elroot.appendChild(el);
 
		el = doc.createElement("RegisterOnStart");
		el
				.setAttribute("value", Boolean.toString(a_PRData
						.isRegisterOnStart())); 
		elroot.appendChild(el);
 
		el = doc.createElement("SuggestedExpDur");
		el.setAttribute("value", Short.toString(a_PRData
				.getSuggestedRegistrationExpDur()));