Code example for Node

Methods: getFirstChildgetNodeName

0
 
		Element root = doc.getDocumentElement();
		String lastError = null;
		if (root.getTagName().equals("nma")) {
			Node item = root.getFirstChild();
			String childName = item.getNodeName();
			if (!childName.equals("success")) {
				lastError = item.getFirstChild().getNodeValue();
			} 
		} 
		return lastError;
	} 
 
	private static void addEncodedParameter(StringBuilder sb, String name, String value) throws UnsupportedEncodingException {
		if (StringUtils.isEmpty(value)) {
			return; 
		} 
		if (sb.length() > 0) {
			sb.append("&");
		} 
Contextual code suggestions in your IDE  Get Codota for Java