How to add an attribute to the root element of any XML documents, which is a column in a table called book
this table contains bookid int
title varchar(10)
Author varchar(10)
Order XML
order is the xml object in this table and contains the following
<buyOrder ordernum="10">
<date>2010-12-3</date>
<shippingdate>2010-12-5</shippingdate>
<delivery>2010-12-12</delivery>
</buyOrder>
I want to add an attribute called cost to the root element?
How can i do this?
up-up source
share