Now i found another solution. It's not with OpenXML but with XQuery and works as expected.DECLARE @XMLVal VARCHAR(500)SET @XMLVal = '<root><option class="selected" selected="selected" value="123">Human Resources</option><option class="selected" selected="selected" value="124">Controlling</option><option class="selected" selected="selected" value="-1">Sales</option><option class="selected" selected="selected" value="125">Facility</option></root>' DECLARE @X xml SET @X = CAST(@xmlVal as xml) SELECT Y.ID.value('data(@value)', 'int') as ValueID FROM @X.nodes('/root/option') as Y(ID) where Y.ID.value('data(@value)', 'int') > 0SELECT Y.ID.value('data(.)', 'varchar(max)') as ValueID FROM @X.nodes('/root/option') as Y(ID) where Y.ID.value('data(@value)', 'int') < 0