x

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

   /root/first/one,
    /root/first/two,
    /root/.../././..
any sample tsq will be helpful
thank you
more ▼

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

tsbalaji gravatar image

tsbalaji
10 2 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.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

SQL Server Central

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

Topics:

x292
x150

asked: Dec 11, 2012 at 12:23 AM

Seen: 574 times

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