Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

How to add a text to an xml element

$
0
0

Hi Guys,

i'm trying to export some course information from sql to xml using the explicit mode.

my root element is <Courses> my subement is <Course>

I would like to add the following code to my root <Courses DeleteAllCurrentRecords="Y"> and for the sub element I would like to add <Course DeleteCurrentRecord="Y"> , the below is a sample how it should look like

<Courses DeleteAllCurrentRecords="Y">

   <Course DeleteCurrentRecord="Y">

     <Code>xxxx</Code>

     <CampusID>yyyy</CampusID>

       ......

  </Course>

</Courses>

Any help is appreciated.

Thanks,

 


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>