You can get the values like this
select
x.v.value('@type','int') as [type],
x.v.value('.','varchar(50)') as [value]
from
@x.nodes('/Params/paramtype') x(v)
where @x
is your XML object.
and insert them into a table with an identity for the ID (or use row_number()
to generate one)