Similiar to question: http://stackoverflow.com/questions/2266132/how-can-i-get-a-list-of-element-names-from-an-xml-value-in-sql-server
How would I also get the values for the list of elements.
For example:
<Root>
<A>a1</A>
<B>b1</B>
<C>c1</C>
</Root>
Would return
Element | Value
A | a1
B | b1
C | c1
Sorry for the confusion, I didn't know how to do the formatting. I just want the element name and the value and do not care about the hierarchy.
Thanks,