validate xml in advance