public static Node getFirstNamedChildNS(Node n, String namespace, String name) {
		NodeList children = n.getChildNodes();
		for (int i = 0; i < children.getLength(); i++) {
			Node currentChild = children.item(i);
			String ns = currentChild.getNamespaceURI();
			String localName = currentChild.getLocalName();
			if (namespace != null && localName != null && ns.equalsIgnoreCase(namespace) && localName.equalsIgnoreCase(name)) {
				return currentChild;
			}
		}
		return null;
	}