x
login about faq Site discussion (meta-askssc)

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 '12 at 12:23 AM in Default

tsbalaji gravatar image

tsbalaji
10 2

(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

By RSS:

Answers

Answers and Comments



Facebook logo Follow Ask SSC on Facebook
Find Ask SSC on Google+
linkedin logo Find us on LinkedIn

Topics:

x224
x115

asked: Dec 11 '12 at 12:23 AM

Seen: 167 times

Last Updated: Dec 11 '12 at 12:23 AM

Copyright © 2002-2012 Simple Talk Publishing. All Rights Reserved. If you have any queries, please contact the site administrators.
Ask SQL Server Central is a community service provided by Red Gate.