Code example for Document

Methods: createElement

0
	} 
 
	private static void ProcessProxyRegConfigData( 
			ProxyRegistrationData a_PRData, Context aUI, Document doc,
			Element rootElement) {
		Element elroot = doc.createElement("Proxy_Reg");
 
		Element el = doc.createElement("Domain");
 
		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())); 
		elroot.appendChild(el);
 
		el = doc.createElement("Registrar");
		el.setAttribute("host", a_PRData.getRegistrar().getHost());
		el.setAttribute("port", Integer.toString(a_PRData.getRegistrar()
				.getPort())); 
		elroot.appendChild(el);