更換SPAN元素,其內部的文本,它的類「TAGGED_ITEM」多行與替換XML span元素在SQL Server中span標籤的內部文本
<Item title="1234" xmlns="http://www.imsglobal.org/xsd/imsqti_v2p2">
<ItemBody>
<div class="item_text">
<div>
<span class="TAGGED_ITEM " id="c1_ae1">This is a map on a grid.</span>
<span class="TAGGED_ITEM " id="c1_ae2"> It shows a car.</span>
</div>
<span class="TAGGED_ITEM " id="c1_ae3"> It shows a car on Road.</span>
</div>
</ItemBody>
</Item>
一旦元素被更新其XML類型的列應該看起來如下。
<Item title="1234" xmlns="http://www.imsglobal.org/xsd/imsqti_v2p2">
<ItemBody>
<div class="item_text">
<div>
This is a map on a grid.
It shows a car.
</div>
It shows a car on Road.
</div>
</ItemBody>
</Item>
你[已經要求(並得到答案!)](HTTP:// stackoverflow.com/questions/35873792/replace-the-xml-element-with-new-element-in-sql-server)幾乎相同的問題之前 - 這是如何不同?請 - **不要**一遍又一遍地提出基本相同的問題! –
@marc_s這個問題與以前的問題不同。在這裏,我正在尋找用烤箱內部文本替換具有類屬性值「TAGGED_ITEM」的特定現有Span元素。與以前的問題完全不同。 – Chat