jenlion
IS-IT--Management
- Nov 13, 2001
- 215
I don't know enough about xml. Hope someone can help.
I have a folder that will receive fixed-width text files.
I need to convert these files into an xml file.
The flat file is basically like this:
And the XML file is basically like this:
How do I cheaply and easily convert one to the other?
We have SQL 2000 available to us but not 2005. Might consider a commercial tool (do I need an XSLT?) if not too expensive, and it once the xslt is created, the tool doesn't reside on the machine any more.
Help?
I have a folder that will receive fixed-width text files.
I need to convert these files into an xml file.
The flat file is basically like this:
Code:
12345 John Doe 123 Elm St Austin TX78705 83094
Code:
<SalesOrder>
<CustomerID>12345</CustomerID>
<ShipToAddress>
<Street> 123 Elm St </Street>
<City>Austin</City>
<State>TX</State>
<Postal>78705</Postal>
</ShipToAddress>
<SalesOrderLines>
<Item>83094</Item>
<Qty>1</Qty>
</SalesOrderLines
</SalesOrder>
How do I cheaply and easily convert one to the other?
We have SQL 2000 available to us but not 2005. Might consider a commercial tool (do I need an XSLT?) if not too expensive, and it once the xslt is created, the tool doesn't reside on the machine any more.
Help?