I’m looking for a way to search all the nodes in an sql xml column.
For example if i have the following XML
<ArrayOfEntityPropertyOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<EntityPropertyOfString>
<Name>User Label 1</Name>
<Value>TX 12107210</Value>
</EntityPropertyOfString>
<EntityPropertyOfString>
<Name>User Label 2</Name>
<Value>BONUS $350/DAY</Value>
</EntityPropertyOfString>
<EntityPropertyOfString>
<Name>User Defined Date 9</Name>
<Value>11/09/2011</Value>
</EntityPropertyOfString>
</ArrayOfEntityPropertyOfString>
How can I search for all values that contain the word ‘bonus’??
Thank you in advance.
Result:
For a table it could look like this:
Result: