Fixed xml in writing data lua example