Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

how to? regarding adding parent tag in generated xml script using C# scripting

$
0
0

Hi All,

I have a set of transformations, which will generate xml data by reading rows from database

here is my data flow https://social.msdn.microsoft.com/Forums/getfile/606619

<Customer> 
<CustomerId>1</CustomerId> 
<Name></Name> 
<Title></Title> 
<Phone>1 (11) 500 555-0162</Phone> 
<Gender>F</Gender> 
<MaritalStatus>S</MaritalStatus> 
<YearlyIncome>70000</YearlyIncome> 
<BirthDate>15-02-1968 12:00:00</BirthDate> 
<EmailAddress>christy12@adventure-works.com</EmailAddress> 
<CustomerKey>11003</CustomerKey> 
</Customer> 


<Customer> 
<CustomerId>2</CustomerId> 
<Name></Name> 
<Title></Title> 
<Phone>1 (11) 500 555-0131</Phone> 
<Gender>F</Gender> 
<MaritalStatus>S</MaritalStatus> 
<YearlyIncome>80000</YearlyIncome> 
<BirthDate>08-08-1968 12:00:00</BirthDate> 
<EmailAddress>elizabeth5@adventure-works.com</EmailAddress> 
<CustomerKey>11004</CustomerKey> 
</Customer> 

my problem is I am not able to add <?xml version="1.0" encoding="UTF-8"?> (xml tag) to output folder, which should be just at the beginning of xml file. 

I am a beginner in SSIS, any help/hints will be appreciated.

Regards,

Mateen



Viewing all articles
Browse latest Browse all 24688

Trending Articles



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