function addValueAtCurrentScope(token, json) {
		var tmp = {};
		var i = 0;
		var objArrayEndIndex = 0;

		if (xmlScope.length === 1) {
			json[getScope()]['_value'] = token;
		}
		else {
			// Navigate to the appropriate scope level in the object to add this new tag data
			tmp = json[xmlScope[0]];
			for (i = 1; i < xmlScope.length-1; i++) {
				tmp = tmp[xmlScope[i]];

				if (Array.isArray(tmp)) {
					tmp = tmp[tmp.length-1];
				}
			}

			// If this property is an array of nodes, then move to the last object of the array
			if (Array.isArray(tmp)) {
				tmp = tmp[tmp.length-1];
			}

			// If this property contains an array of nodes, then add the value to the object at the tail of the array
			if (Array.isArray(tmp[getScope()])) {
				objArrayEndIndex = tmp[getScope()].length-1;
				tmp[getScope()][objArrayEndIndex]['_value'] = token;
			}
			else {
				tmp[getScope()]['_value'] = token;
			}
		}
	}
/*
	*	Adds a property to the json object.  Location is determined by the global scope variable
	*	@param {String} token - An xml value (not a tag)
	*	@param {object} json - the json object currently being built
	*/
Adds a property to the json object.  Location is determined by the global scope variable
@param {String} token - An xml value (not a tag)
@param {object} json - the json object currently being built
Adds a property to the json object . Location is determined by the global scope variable @param { String } token - An xml value ( not a tag ) @param { object } json - the json object currently being built
function addValueAtCurrentScope(token, json) {
		var tmp = {};
		var i = 0;
		var objArrayEndIndex = 0;
		if (xmlScope.length === 1) {
			json[getScope()]['_value'] = token;
		}
		else {
			tmp = json[xmlScope[0]];
			for (i = 1; i < xmlScope.length-1; i++) {
				tmp = tmp[xmlScope[i]];
				if (Array.isArray(tmp)) {
					tmp = tmp[tmp.length-1];
				}
			}
			if (Array.isArray(tmp)) {
				tmp = tmp[tmp.length-1];
			}
			if (Array.isArray(tmp[getScope()])) {
				objArrayEndIndex = tmp[getScope()].length-1;
				tmp[getScope()][objArrayEndIndex]['_value'] = token;
			}
			else {
				tmp[getScope()]['_value'] = token;
			}
		}
	}
function addValueAtCurrentScope ( token , json ) { var tmp = { } ; var i = 0 ; var objArrayEndIndex = 0 ; if ( xmlScope . length === 1 ) { json [ getScope ( ) ] [ '_value' ] = token ; } else { tmp = json [ xmlScope [ 0 ] ] ; for ( i = 1 ; i < xmlScope . length - 1 ; i ++ ) { tmp = tmp [ xmlScope [ i ] ] ; if ( Array . isArray ( tmp ) ) { tmp = tmp [ tmp . length - 1 ] ; } } if ( Array . isArray ( tmp ) ) { tmp = tmp [ tmp . length - 1 ] ; } if ( Array . isArray ( tmp [ getScope ( ) ] ) ) { objArrayEndIndex = tmp [ getScope ( ) ] . length - 1 ; tmp [ getScope ( ) ] [ objArrayEndIndex ] [ '_value' ] = token ; } else { tmp [ getScope ( ) ] [ '_value' ] = token ; } } }
Adds a property to the json object.
Adds a property to the json object .
// Navigate to the appropriate scope level in the object to add this new tag data // If this property is an array of nodes, then move to the last object of the array // If this property contains an array of nodes, then add the value to the object at the tail of the array