fix bug for validate xml with schemas