Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Creating XML file using Excel Data


Creating XML file using Excel Data

Author
Message
A Little Help Please
A Little Help Please
Old Hand
Old Hand (322 reputation)Old Hand (322 reputation)Old Hand (322 reputation)Old Hand (322 reputation)Old Hand (322 reputation)Old Hand (322 reputation)Old Hand (322 reputation)Old Hand (322 reputation)

Group: General Forum Members
Points: 322 Visits: 718
I need to create an XML file populated by data from a CSV file.

I have the following XMLSchema template:



xmlns:cmn="http://www.test.co.uk/XMLSchema/DataFeedCommon-v1-2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

1.1

123456
IIBS


2009-03-12
March09




123789
123789
false
N



123456

2009-02-27
08:02:00
B
P
Stock
I
2009-03-31
F
10
3836
GBP
3

QWERTYU

XXXX






All the data highlighted in BOLD above will come from an excel (csv) file.

At the moment as a work around im using a MS Word Mail Merge, this is not ideal, can his be done using a SSIS package?
A Little Help Please
A Little Help Please
Old Hand
Old Hand (322 reputation)Old Hand (322 reputation)Old Hand (322 reputation)Old Hand (322 reputation)Old Hand (322 reputation)Old Hand (322 reputation)Old Hand (322 reputation)Old Hand (322 reputation)

Group: General Forum Members
Points: 322 Visits: 718
Any suggestions?
Edward Boyle-478467
Edward Boyle-478467
Valued Member
Valued Member (68 reputation)Valued Member (68 reputation)Valued Member (68 reputation)Valued Member (68 reputation)Valued Member (68 reputation)Valued Member (68 reputation)Valued Member (68 reputation)Valued Member (68 reputation)

Group: General Forum Members
Points: 68 Visits: 1133
Can you send a sample of the CSV file.

Are you updating the XML or creating new records?
A Little Help Please
A Little Help Please
Old Hand
Old Hand (322 reputation)Old Hand (322 reputation)Old Hand (322 reputation)Old Hand (322 reputation)Old Hand (322 reputation)Old Hand (322 reputation)Old Hand (322 reputation)Old Hand (322 reputation)

Group: General Forum Members
Points: 322 Visits: 718
I have attached the XML DATA FILE (CSV).
The final CSV will be updated manually every day.

After the update I was to convert it to the XML file.


Thanks
Attachments
xmldatafile.xls (16 views, 13.00 KB)
vsmeruga
vsmeruga
Forum Newbie
Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)

Group: General Forum Members
Points: 9 Visits: 35
Hi Friend

I believe you are creating this xml file for FSA report purpose and i have to create the same file. Can you please help me on this.

Many thanks
VJ
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search