Click here to Skip to main content
15,914,323 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Crystal Report Like Statment Pin
darkelv28-Feb-06 3:41
darkelv28-Feb-06 3:41 
QuestionIssue with XML file Pin
mayhem_rules27-Feb-06 19:10
mayhem_rules27-Feb-06 19:10 
AnswerRe: Issue with XML file Pin
Christian Graus27-Feb-06 19:39
protectorChristian Graus27-Feb-06 19:39 
GeneralRe: Issue with XML file Pin
mayhem_rules27-Feb-06 20:19
mayhem_rules27-Feb-06 20:19 
GeneralRe: Issue with XML file Pin
Christian Graus28-Feb-06 11:01
protectorChristian Graus28-Feb-06 11:01 
AnswerRe: Issue with XML file Pin
Steve Pullan28-Feb-06 11:13
Steve Pullan28-Feb-06 11:13 
GeneralRe: Issue with XML file Pin
mayhem_rules28-Feb-06 18:13
mayhem_rules28-Feb-06 18:13 
GeneralRe: Issue with XML file Pin
Steve Pullan28-Feb-06 18:56
Steve Pullan28-Feb-06 18:56 
Ok, I see. Excel can diectly import CSV (comma separated value) files or TAB separated files. Maybe that would be a better way.

With XML, you have the overhead of a begin tag and an end tag wrapping each value which, depending on the tag names, can be rather long and a huge overhead per row of data. CSV (or TAB) delimited files on the other hand incur only a single character overhead between each value in each row of data which equates to a very much smaller file.

For example consider a Customer table defined in the database with the following (abstract) column names:

"CustomerName", "Address", "Country", "TelephoneNumber"

Assume some test data:

"steve", "111 nowhere street", "australia", "123456789"
"brian", "222 right rd", "usa", "123456789"
"tony", "333 left ave", "israel", "123456789"
"angela", "444 circular cres", "mars", "123456789"
"george", "555 main st", "moon", "123456789"

Note that the CSV file format is that shown above - quite compact.

If we extract this data to an XML file, it could end up looking something like this for each row (it is not accurate and is for explanation only):

<Customer>
<CustomerName>steve</CustomerName>
<Address>111 nowhere street</Address>
<Country>australia</Country>
<TelephoneNumber>123456789</TelephoneNumber>
...
</Customer>

Can you see the extra overhead in just one row of data? In this particular case the overhead exceeds the actual row data size. Multiple this by a factor of 50,000 (i.e. the rows in your database) and it is huge.

In short, yes XML is a good way of transporting data between dissimilar applications provided the number of data is relatively low and there is no other viable method.



...Steve

GeneralRe: Issue with XML file Pin
mayhem_rules28-Feb-06 22:02
mayhem_rules28-Feb-06 22:02 
GeneralRe: Issue with XML file Pin
Steve Pullan1-Mar-06 12:50
Steve Pullan1-Mar-06 12:50 
QuestionRemote Shutdown Pin
chrysler_vergara_m27-Feb-06 18:51
chrysler_vergara_m27-Feb-06 18:51 
AnswerRe: Remote Shutdown Pin
illusionFinder28-Feb-06 1:53
illusionFinder28-Feb-06 1:53 
QuestionWeb Connection Blocked Pin
huckeuri27-Feb-06 18:45
huckeuri27-Feb-06 18:45 
QuestionHow to generate crystal reports by passing parameter indirectly? Pin
jkrao27-Feb-06 18:15
jkrao27-Feb-06 18:15 
Questionconversion help...... Pin
ss65432127-Feb-06 16:05
ss65432127-Feb-06 16:05 
QuestionVB6 XML String parse Pin
Rahman Mahmoodi27-Feb-06 15:56
Rahman Mahmoodi27-Feb-06 15:56 
AnswerRe: VB6 XML String parse Pin
Christian Graus27-Feb-06 16:16
protectorChristian Graus27-Feb-06 16:16 
QuestionDeterming elapsed time... Pin
Nobelium27-Feb-06 12:33
Nobelium27-Feb-06 12:33 
AnswerRe: Determing elapsed time... Pin
Guffa27-Feb-06 13:17
Guffa27-Feb-06 13:17 
Questionstarting interactive process from windows service Pin
Qaiser_Iftikhar27-Feb-06 10:21
Qaiser_Iftikhar27-Feb-06 10:21 
Questionamstextbox and VS 2005 Pin
CanuteM27-Feb-06 9:56
CanuteM27-Feb-06 9:56 
QuestionReportViewer not displaying footer info? Pin
Rashar27-Feb-06 9:48
Rashar27-Feb-06 9:48 
AnswerRe: ReportViewer not displaying footer info? Pin
noshaba mariam27-Feb-06 17:41
noshaba mariam27-Feb-06 17:41 
GeneralRe: ReportViewer not displaying footer info? Pin
Rashar28-Feb-06 2:01
Rashar28-Feb-06 2:01 
GeneralRe: ReportViewer not displaying footer info? Pin
noshaba mariam28-Feb-06 17:41
noshaba mariam28-Feb-06 17:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.