Code example for Node

Methods: getAttributes, getChildNodes

0
    		// Generate post request on selected group and user name and password input. 
			String postRequestMsg = "";
			 
			if(mGroupNode != null) {
				// Add the selected group value 
				postRequestMsg += mGroupNode.getAttributes().getNamedItem("name").getNodeValue();
				postRequestMsg += "=";
				// Gets reference to selected options node. 
				Node selectedNode = mGroupNode.getChildNodes().item(DialogFromXml.this.mGroupSelectionPos+1);
				postRequestMsg += selectedNode.getAttributes().item(0).getNodeValue();
				postRequestMsg += "&";
			} 
			 
			if(mUsernameEditText != null) {
				// Add the entered user name 
				postRequestMsg += USERNAME + "="; 
				postRequestMsg += mUsernameEditText.getText().toString();
				postRequestMsg += "&";				
			} 
			 
			if(mPasswordEditText != null) {