XQuery Question

  • I have a XML field in my table has the following value. I want to prefix "=" with all the value element. as it shown in the Ex:2. Is there a easy way to modify it using xquery...?

    Ex:1

    Ex:2

  • XML won't show in the forums. Attach it as a txt doc, please.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • Thans for the notification. Please see the attachment.

  • You can use the XQuery modify function for that. Books Online has details and a couple of examples.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply