b_levitt
asked on
XQuery to return subnodes
Consider the following xml documents in an xml column:
row 1:
<doc>
<children>
<value>1</value>
<value>2</value>
</children>
</doc>
row 2:
<doc>
<children>
<value>3</value>
<value>4</value>
<value>5</value>
</children>
</doc>
I'd like an xquery statement (xml.value()?) to return a rowset of:
1
2
3
4
5
row 1:
<doc>
<children>
<value>1</value>
<value>2</value>
</children>
</doc>
row 2:
<doc>
<children>
<value>3</value>
<value>4</value>
<value>5</value>
</children>
</doc>
I'd like an xquery statement (xml.value()?) to return a rowset of:
1
2
3
4
5
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
too slow :/
And we can only hope the user is using at least SQL Server 2005. :)
Oops, never mind, I need to start reading the question through the end. :)
ASKER
I've said it before and I'll say it again - the SQL Server experts alone are worth a paid membership to EE! I'll give it a shot in the morning and award points.
:)
ASKER
Works great chap. Sorry you lost the race angel.
Open in new window