Added Lalit Patel's XML2Array and Array2XML functions