Using:
WHERE xmlcolumn.value('(/path/to/tag)[1]', 'int') = @QueryValue
Change the data type to whatever suits you.
For more information, see the documentation - in particular, the methods available when working with the XML data type ...
source
share