function serializeSingleElement(oElement) {
		var oAttribute,
			oAttributesList = oElement.attributes,
			sText = "<" + oElement.nodeName,
			i, n;

		for (i = 0, n = oAttributesList.length; i < n; i += 1) {
			oAttribute = oAttributesList.item(i);
			sText += " " + oAttribute.name + '="' + oAttribute.value + '"';
		}
		return sText + (oElement.childNodes.length ? ">" : "/>");
	}
/**
	 * Serializes the element with its attributes.
	 * <p>
	 * BEWARE: makes no attempt at encoding, DO NOT use in a security critical manner!
	 *
	 * @param {Element} oElement any XML DOM element
	 * @returns {string} the serialization
	 */
Serializes the element with its attributes.

BEWARE: makes no attempt at encoding, DO NOT use in a security critical manner!

@param {Element} oElement any XML DOM element
@returns {string} the serialization
Serializes the element with its attributes . BEWARE : makes no attempt at encoding DO NOT use in a security critical manner! @param { Element } oElement any XML DOM element @returns { string } the serialization
function serializeSingleElement(oElement) {
		var oAttribute,
			oAttributesList = oElement.attributes,
			sText = "<" + oElement.nodeName,
			i, n;
		for (i = 0, n = oAttributesList.length; i < n; i += 1) {
			oAttribute = oAttributesList.item(i);
			sText += " " + oAttribute.name + '="' + oAttribute.value + '"';
		}
		return sText + (oElement.childNodes.length ? ">" : "/>");
	}
function serializeSingleElement ( oElement ) { var oAttribute , oAttributesList = oElement . attributes , sText = "<" + oElement . nodeName , i , n ; for ( i = 0 , n = oAttributesList . length ; i < n ; i += 1 ) { oAttribute = oAttributesList . item ( i ) ; sText += " " + oAttribute . name + '="' + oAttribute . value + '"' ; } return sText + ( oElement . childNodes . length ? ">" : "/>" ) ; }
Serializes the element with its attributes.
Serializes the element with its attributes .