Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6705603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:25:23+00:00 2026-05-26T07:25:23+00:00

With the help of the following blog : I created a SQL Server Integration

  • 0

With the help of the following blog: I created a SQL Server Integration Services (SSIS) package. Reading from a .txt file I am able to create a relative XML file and save it in a specific path.

However since I have to loop over 50 or more txt files and generate, for each of them, a relative xml file, I would like to be able to automatically save the xml file with the same input name.

I have seen that with a foreach loop I can set “.txt” as input files, but how can I specify to dynamically take the input file name for the xml output file?

At the moment I use an hardcoded path for the File Connection manager used for set the output xml file path.

Moreover, instead of creating the xml file via VB script, would it be possible to create an XML template and use SSIS to fill specific keywords accordingly?

Something like:

<root>
  <product>
      <name>[Prod_Name]</name>
      <qty>[Prod_Qty]</qty>
  </product>
</root>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T07:25:24+00:00Added an answer on May 26, 2026 at 7:25 am

    Here I post my solution in case it might help someone else.
    As said in the comment I used a script transformation to create dynamically the xml tags as wished:

    With xmlWriter            
     .Write(FormatElement("rdf:Description rdf:about=""" + Me.Variables.strFileName + """ "))
     .Write(FormatElement("Date") + "" + FormatElement("Date", True))
     .Write(FormatElement("ValidFrom") + "" + FormatElement("ValidFrom", True))
     .Write(FormatElement("ValidTo") + "" + FormatElement("ValidTo", True))
    
      ....
    
    End With
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've just created a new rails application using command: rails blog Now I'm following
i found the following article http://ayende.com/Blog/archive/2009/04/28/nhibernate-unit-testing.aspx to help me unit test my NHibernate application.
I was reading this website for notes on closure: blog.morrisjohns.com/javascript_closures_for_dummies.html It had the following
I am installing rvm on Ubuntu Server 11.10 following the excellent guid: http://blog.ninjahideout.com/posts/a-guide-to-a-nginx-passenger-and-rvm-server Since
Please help regarding the following issue. I have enabled the Block popup option in
I need help on this following aspx code aspx Code: <asp:Label ID =lblName runat
Can someone help explain the following: If I type: a=`ls -l` Then the output
I need help doing the following: a preprocessor macro label(x) shall output #x, e.g.,
Hi I need some help with the following scenario in php. I have a
I need some help extracting the following bits of information using regular expressions. Here

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.