I need to validate XML using XSD inside TSQL. To make this task semi automated I need to do this inside TSQL function.
To make validation I have to set value to XML and if it is not valid I will receive an error.
My problem is that inside the TSQL function I can not use
TRY / CATCH. Is this the propper way and if it is even possible to do this?