function createObjectFromTag(tag) {
		var tagObject = {};
		var attributes = getAttributes(tag);
		var currAttribute;
		var key;
		var value;
		var i = 0;
		
		for (i = 0; i < attributes.length; i++) {
			currAttribute = parseAttribute(attributes[i]);
			key = currAttribute[0];
			value = currAttribute[1];
			tagObject[key] = value;
		}

		return tagObject;
	}
/*
	*	Creates a JavaScript object from an xml tag with all of the attributes as object properties.  The node value is not included.
	*	@param {String} tag - An xml tag, with or without attributes
	*	@return {Object} - Returns an object containing all of the xml attributes as properties
	*/
Creates a JavaScript object from an xml tag with all of the attributes as object properties.  The node value is not included.
@param {String} tag - An xml tag, with or without attributes
@return {Object} - Returns an object containing all of the xml attributes as properties
Creates a JavaScript object from an xml tag with all of the attributes as object properties . The node value is not included . @param { String } tag - An xml tag with or without attributes @return { Object } - Returns an object containing all of the xml attributes as properties
function createObjectFromTag(tag) {
		var tagObject = {};
		var attributes = getAttributes(tag);
		var currAttribute;
		var key;
		var value;
		var i = 0;
		for (i = 0; i < attributes.length; i++) {
			currAttribute = parseAttribute(attributes[i]);
			key = currAttribute[0];
			value = currAttribute[1];
			tagObject[key] = value;
		}
		return tagObject;
	}
function createObjectFromTag ( tag ) { var tagObject = { } ; var attributes = getAttributes ( tag ) ; var currAttribute ; var key ; var value ; var i = 0 ; for ( i = 0 ; i < attributes . length ; i ++ ) { currAttribute = parseAttribute ( attributes [ i ] ) ; key = currAttribute [ 0 ] ; value = currAttribute [ 1 ] ; tagObject [ key ] = value ; } return tagObject ; }
Creates a JavaScript object from an xml tag with all of the attributes as object properties.
Creates a JavaScript object from an xml tag with all of the attributes as object properties .