public static String getAttributeValue(Node node, String name) {
		String results = null;

		if(node != null && !isNullOrWhitespace(name) && node instanceof Element) {
			NamedNodeMap attrs = node.getAttributes();
			if(attrs != null) {
				for(int j = 0; j < attrs.getLength(); ++j) {
					Attr attr = (Attr)attrs.item(j);
					
					boolean nameNodeMatch = false;
					if(attr != null) {
						nameNodeMatch = attr.getNodeName().equals(name);
						if(!nameNodeMatch) {
							nameNodeMatch = attr.getLocalName().equals(name);
						}
					}
					
					if(nameNodeMatch) {
						results = attr.getNodeValue();
						break;
					}
				}
			}
		}
		return results;
	}