I have a problem with removing an attribute from a node.
Example:
DECLARE @processID int SET @processID = 8
DECLARE @xml XML SET @xml = ' '
SET @xml.modify('delete (/Process/Shapes/Shape/@subProcessID[/Process/Shapes/Shape/@subProcessID = sql:variable("@processID")])') SELECT @xml
Gives the result:
What I would like is:
What is the syntax to achieve this?