added code validate xml