support xml attribute setting