validate xml in server