Array2XML conversion library credit to lalit.org