private static String getTagValue(String tag, Element element) {
		NodeList nlList = null;
		if (element.getElementsByTagName(tag).item(0) == null)
			return "";

		nlList = element.getElementsByTagName(tag).item(0).getChildNodes();

		Node nValue = null;
		if (nlList.getLength() > 0)
			nValue = (Node) nlList.item(0);

		return nValue == null ? "" : nValue.getNodeValue();
	}