Hi Jacob,
I've simplified the example code a little.
DECLARE @x XML
SELECT @x =
'<A xmlns="edde">
<B>
<C>
<D>Mitesh</D>
<D>R</D>
<E>E1</E>
<E>E2</E>
<E>E3</E>
<F>F</F>
</C>
</B>
</A>'
SELECT @x
Now I want to know how to delete the first D element and the last E element. The result I want is:
<A xmlns="edde">
<B>
<C>
<D>R</D>
<E>E1</E>
<E>E2</E>
<F>F</F>
</C>
</B>
</A>
How to do that? Thanks.
commented on Jun 19 2012 6:50AM