Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bulk insert into xml file

Status
Not open for further replies.

londontown1

Technical User
Nov 3, 2008
4
GB
I have a xls file and a txt(xml) file.
I need to import the data from the xls file to the txt (xml) file
The xls file has 500 rows of data

But the xml file must have a set format with some static data:

<FeedMsg>
<CoreItemsMkt xmlns=" <FirmFSARef>
172330
</FirmFSARef>
<TransRef>
4649606
</TransRef>
<Cancellation>
false
</Cancellation>
<Status>
N
</Status>
</CoreItemsMkt>
<Transaction>
<ReportingFirmId>
<ReportingFirmCode type="R">
172330
</ReportingFirmCode>
</ReportingFirmId>
<TradingDate>
COLUMN 1
</TradingDate>
<TradingTime>
COLUMN 2
</TradingTime>
<BuySell>
COLUMN 3
</BuySell>
<TradingCapacity>
P
</TradingCapacity>
<InstrumentIdentification>
<InstrumentIdentificationCode type="I">
COLUMN 4
</InstrumentIdentificationCode>
</InstrumentIdentification>
<TypeOfInstrument>
A
</TypeOfInstrument>
<UnitPrice>
COLUMN 5
</UnitPrice>
<PriceNotation>
COLUMN 5
</PriceNotation>
<Quantity>
COLUMN 6
</Quantity>
<CounterpartyOne>
<CounterpartyCode type=" COLUMN 7">
COLUMN 8
</CounterpartyCode>
</CounterpartyOne>
<VenueIdentification>
XLON
</VenueIdentification>
</Transaction>
</MarketsFeedMsg>
</MarketsFeed>


Only the bit which read COLUMN# are the sections coming from the xls file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top