json2xml.js
function(obj,attrPrefix,standalone,indent,indentStr,fragment) {
		var attributePrefix = (attrPrefix ? attrPrefix : '@');
		if (fragment) {
			xmlWrite.startFragment(indent,indentStr);
		}
		else {
			xmlWrite.startDocument('UTF-8',standalone,indent,indentStr);
		}
		traverse(obj,'',attributePrefix);
		return xmlWrite.endDocument();
	}
function(obj,attrPrefix,standalone,indent,indentStr,fragment) {
		var attributePrefix = (attrPrefix ? attrPrefix : '@');
		if (fragment) {
			xmlWrite.startFragment(indent,indentStr);
		}
		else {
			xmlWrite.startDocument('UTF-8',standalone,indent,indentStr);
		}
		traverse(obj,'',attributePrefix);
		return xmlWrite.endDocument();
	}
function ( obj , attrPrefix , standalone , indent , indentStr , fragment ) { var attributePrefix = ( attrPrefix ? attrPrefix : '@' ) ; if ( fragment ) { xmlWrite . startFragment ( indent , indentStr ) ; } else { xmlWrite . startDocument ( 'UTF-8' , standalone , indent , indentStr ) ; } traverse ( obj , '' , attributePrefix ) ; return xmlWrite . endDocument ( ) ; }
TODO convert this to an options object
TODO convert this to an options object