support index array to xml