group tags for unknow depth in xpath

Hi, how to traverse to the last depth of a xpath and group it with appropriate parents http://ask.sqlservercentral.com/questions/96451/get-xml-from-xpath-and-col-value.html gives answer to group parent and child but how to make it work for unknown depth say for example

 any sample tsq will be helpful
 thank you
more ▼

asked Dec 11, 2012 at 12:23 AM in Default

avatar image

10 3 3 4

(comments are locked)
10|1200 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.



asked: Dec 11, 2012 at 12:23 AM

Seen: 720 times

Last Updated: Dec 11, 2012 at 12:23 AM

Copyright 2018 Redgate Software. Privacy Policy