Quantcast
Channel: XQuery namespace problem
Viewing all articles
Browse latest Browse all 4

XQuery namespace problem

$
0
0

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 taskid

from

@xmlTask.nodes('/*:tasks/*:task')as task(ref);

 

is close to that.

 


Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>