473,465 Members | 1,538 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

On the fly DB conversion

Hello all Im crossposting this to XML but since I cant decide where it
should be asked here goes....

I had a project cross my desk today , nothing special but lots of XML
work, sort of.

What I need to be able to do is grab a file from the web (user
uploaded to me) It could be Access Excel CSV DBase or a couple of
others (XBase VFP FMPro), what I need to do is export that to XML ,
the hink Is I dont know how its going to be coming in (as far as field
arrangment) I should for the most part be able to determine that
progromatically using regular expressions as they are address fields ,
first name last name address zip etc, but they could come in any
order.

I also wont know how many fields are coming in, is there a way I can
do this will OLEDB and dump it into a temp table ?

So what is the best way to convert these databases directly to XML

OR

Is it better to convert them to an interm format (CSV) and then use
something like XmlCsvReader to export it to XML ?

What are some good tools to do the initial DB conversion to CSV ? I
preffer free tools with source (hey I've got a UNIX background :)

Everything is going to be written in VB.NET (2.0 if there are things
in 2.0 that will make my life easier)

Many thanks

Chris
Nov 18 '05 #1
1 915
I wrote something like this a while back.
Just import the files to a DataSet and then save that back to XML.

I used the OLEDB Provider for Jet with Access and Excel.
I wrote a class to handle CSV and Fixed Width text files.
dBase and Foxpro were also fairly simple.
--
Joe Fallon

"WertmanTheMad" <cw******@webchamps.com> wrote in message
news:13**************************@posting.google.c om...
Hello all Im crossposting this to XML but since I cant decide where it
should be asked here goes....

I had a project cross my desk today , nothing special but lots of XML
work, sort of.

What I need to be able to do is grab a file from the web (user
uploaded to me) It could be Access Excel CSV DBase or a couple of
others (XBase VFP FMPro), what I need to do is export that to XML ,
the hink Is I dont know how its going to be coming in (as far as field
arrangment) I should for the most part be able to determine that
progromatically using regular expressions as they are address fields ,
first name last name address zip etc, but they could come in any
order.

I also wont know how many fields are coming in, is there a way I can
do this will OLEDB and dump it into a temp table ?

So what is the best way to convert these databases directly to XML

OR

Is it better to convert them to an interm format (CSV) and then use
something like XmlCsvReader to export it to XML ?

What are some good tools to do the initial DB conversion to CSV ? I
preffer free tools with source (hey I've got a UNIX background :)

Everything is going to be written in VB.NET (2.0 if there are things
in 2.0 that will make my life easier)

Many thanks

Chris

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Stub | last post by:
Docs says that "The compiler does not use an explicit constructor to implement an implied conversion of types. It's purpose is reserved explicitly for construction." I put up code of three cases...
7
by: Michael Lehn | last post by:
Hi, I have a question regarding the conversion of objects. When is the conversion done by the constructor and when by the operator. My feeling tells me that the constructor is preferred. But...
16
by: TTroy | last post by:
Hello, I'm relatively new to C and have gone through more than 4 books on it. None mentioned anything about integral promotion, arithmetic conversion, value preserving and unsigned preserving. ...
31
by: Bjørn Augestad | last post by:
Below is a program which converts a double to an integer in two different ways, giving me two different values for the int. The basic expression is 1.0 / (1.0 * 365.0) which should be 365, but one...
11
by: Steve Gough | last post by:
Could anyone please help me to understand what is happening here? The commented line produces an error, which is what I expected given that there is no conversion defined from type double to type...
2
by: Alex Sedow | last post by:
Why explicit conversion from SomeType* to IntPtr is not ambiguous (according to standart)? Example: // System.IntPtr class IntPtr { public static explicit System.IntPtr (int); public...
3
by: Steve Richter | last post by:
here is a warning I am getting in a C++ .NET compile: c:\SrNet\jury\JuryTest.cpp(55) : warning C4927: illegal conversion; more than one user-defined conversion has been implicitly applied while...
0
by: Lou Evart | last post by:
DOCUMENT CONVERSION SERVICES Softline International (SII) operates one of the industry's largest document and data conversion service bureaus. In the past year, SII converted over a million...
0
by: dataentryoffshore | last post by:
Get a Discount up to 60% on data entry, data capture, dataentry services, large volume data processing and data conversion services through offshore facilities in India. Offshore data entry also...
21
by: REH | last post by:
It it permissible to use the constructor style cast with primitives such as "unsigned long"? One of my compilers accepts this syntax, the other does not. The failing one chokes on the fact that the...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.