def addXMLFromLoopComplexZ(attributes, depth, loop, output, z):
	'Add xml from loop.'
	addBeginXMLTag(attributes, depth, 'path', output)
	for pointComplexIndex in xrange(len(loop)):
		pointComplex = loop[pointComplexIndex]
		addXMLFromXYZ(depth + 1, pointComplexIndex, output, pointComplex.real, pointComplex.imag, z)
	addEndXMLTag(depth, 'path', output)