With XQuery you can use *: foo to select an element with local name 'foo' in any namespace.
So completely "ignoring" the namespace is not possible but
Code Snippet
select
task.ref.value('(*:taskid/text())[1]','nvarchar(50)')as taskidfrom
@xmlTask.nodes('/*:tasks/*:task')as task(ref);
is close to that.