I\'m unable to use XMLEXISTS within CASE statement in SELECT statement instead of using it in WHERE clause.