The  createXML()  function converts the contents of a variable into XML.
It recursively calls itself to convert each variable. It sets its own "type" option based on the detected contents of the given variable / object.
	
	

my_xml = createXML(myVariable, type)
types:
	0 = variable
	1 = object
	2 = array

0: myVar = "shelly"			datatype="string" / datatype="number"
1: myObject = [myVar="shelly"]	datatype="object"		.length = undefined
2: myArray = [~,~,~]			datatype="object"		.length = 3
3: []						parentType = "array"


0:	create attribute(this)

1:	create node(this)
	create attribute(xmlType="object")

2:	create node(this)
	create attribute(xmlType="array")
	evaluate each element
	create node()

3:	create node(this)



All arrays are handled the same way (which is ideal)
If parent is an array, create a node BEFORE the  (for... in)  statement & set XML target to it.