• Here is a simple example:

    DECLARE @xml XML

    SELECT @xml = '<employee name="jacob"/>'

    SELECT * FROM XMLTable(@xml)

    WHERE NodeType = 'attribute'

    .