function xmlContainsValue(xmlString, value, xpathToValue) {
		var testValue = getValue(xmlString, xpathToValue);

		if (Array.isArray(testValue)) {
			var splitPath = xpathToValue.split('/');
			var valueName = splitPath[splitPath.length-1];

			for (i = 0; i < testValue.length; i++) {
				if (testValue[i][valueName]) {
					if (testValue[i][valueName] === value) {
						return true;
					}
				}
			}
			return false;
		}

		return testValue === value;
	}
/*
	*	Generates a json object from the given xml and traverses it to find the indicated value at the path given and returns true if found, false if not found
	*	Use '@' to indicate a path to an attribute value: path/to/@attribute
	*	Use '_value' to indicate a path to a node value: path/to/_value
	*
	*	@param {String} xmlString - The xml document to be searched
	*	@param {String} value - The value to be searched for
	*	@param {String} xpathToValue - the XPath of where to find the value
	*	@return {boolean} - Returns true if the value is found on the indicated path, otherwise returns false
	*/
Generates a json object from the given xml and traverses it to find the indicated value at the path given and returns true if found, false if not found
Use '@' to indicate a path to an attribute value: path/to/@attribute
Use '_value' to indicate a path to a node value: path/to/_value

@param {String} xmlString - The xml document to be searched
@param {String} value - The value to be searched for
@param {String} xpathToValue - the XPath of where to find the value
@return {boolean} - Returns true if the value is found on the indicated path, otherwise returns false
Generates a json object from the given xml and traverses it to find the indicated value at the path given and returns true if found false if not found Use ' @ ' to indicate a path to an attribute value : path / to / @attribute Use ' _value ' to indicate a path to a node value : path / to / _value @param { String } xmlString - The xml document to be searched @param { String } value - The value to be searched for @param { String } xpathToValue - the XPath of where to find the value @return { boolean } - Returns true if the value is found on the indicated path otherwise returns false
function xmlContainsValue(xmlString, value, xpathToValue) {
		var testValue = getValue(xmlString, xpathToValue);
		if (Array.isArray(testValue)) {
			var splitPath = xpathToValue.split('/');
			var valueName = splitPath[splitPath.length-1];
			for (i = 0; i < testValue.length; i++) {
				if (testValue[i][valueName]) {
					if (testValue[i][valueName] === value) {
						return true;
					}
				}
			}
			return false;
		}
		return testValue === value;
	}
function xmlContainsValue ( xmlString , value , xpathToValue ) { var testValue = getValue ( xmlString , xpathToValue ) ; if ( Array . isArray ( testValue ) ) { var splitPath = xpathToValue . split ( '/' ) ; var valueName = splitPath [ splitPath . length - 1 ] ; for ( i = 0 ; i < testValue . length ; i ++ ) { if ( testValue [ i ] [ valueName ] ) { if ( testValue [ i ] [ valueName ] === value ) { return true ; } } } return false ; } return testValue === value ; }
Generates a json object from the given xml and traverses it to find the indicated value at the path given and returns true if found, false if not found
       Use '@' to indicate a path to an attribute value: path/to/@attribute
       Use '_value' to indicate a path to a node value: path/to/_value
Generates a json object from the given xml and traverses it to find the indicated value at the path given and returns true if found false if not found Use ' @ ' to indicate a path to an attribute value : path / to / @attribute Use ' _value ' to indicate a path to a node value : path / to / _value