Click here to Skip to main content
15,913,941 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: Some questions about XML Pin
Michael A. Barnhart12-Jan-03 14:43
Michael A. Barnhart12-Jan-03 14:43 
GeneralRe: Some questions about XML Pin
Stephane Rodriguez.14-Jan-03 4:08
Stephane Rodriguez.14-Jan-03 4:08 
GeneralRe: Some questions about XML Pin
Taka Muraoka12-Jan-03 11:58
Taka Muraoka12-Jan-03 11:58 
GeneralRe: Some questions about XML Pin
Marc Clifton12-Jan-03 14:34
mvaMarc Clifton12-Jan-03 14:34 
GeneralRe: Some questions about XML Pin
me12-Jan-03 13:14
me12-Jan-03 13:14 
GeneralRe: Some questions about XML Pin
Marc Clifton12-Jan-03 14:35
mvaMarc Clifton12-Jan-03 14:35 
GeneralRe: Some questions about XML Pin
me12-Jan-03 16:03
me12-Jan-03 16:03 
GeneralRe: Some questions about XML Pin
Michael A. Barnhart12-Jan-03 14:19
Michael A. Barnhart12-Jan-03 14:19 
I generally agree with Christians response but here are my 2 cents.

Marc Clifton wrote:
What are the pros and cons of XML?

Pros. You can create and transmit your data in an XML format with your tool set and I can read it with my tool set. Language and platform independant. No need to write a custom routine for each set of data (other than using the parsing tools in my app. If you have documented your information with a schema I can test your file and see if it conforms. You can also test my data when I return info to you. I can extend your data with additional info and extend your schema if needed. Your data is still consistent and usable with my additions doing nothing to the processing sequence of yoru data. Where do I stop?

Cons. TO many people believe in magic. Since XML is the in buzz word it will be missued and then discarded as not being a good solution when it may be.


Marc Clifton wrote:
What problems does XML solve?

For me it is mostly data transmission and reformating. I have a lot of data that must be displayed for review and then used in applications. I can XMLize the data stream from the data source and then apply the appropriate transformation for the usage at hand. This now gives me one authoritive data source for all usage. I can not tell you how many millions of dollars I know have been lost due to not having one authoritive set of data, but multiple that were not really handled correctly.


Marc Clifton wrote:
When is XML a good solution for a problem, and when isn't it?

Rather open question. It is a good solution to the above items that I mention plus more. It is not a good solution to use for massive data migration tasks. For example I have done a lot of finite element work. Now a typical run may produce a binary data set that is say 20 gig in size. It would be rediculus to handle this entire set of data as an XML file. If you just need to send a small set of data from a query then query the data and XMLize the results to send.


Marc Clifton wrote:
Self-defining data structure. So what?

Not just self defining structure but in the way it is structured. The ability to now use XPath and XSLT to find and process what I need as well as a standard method to describe the data schema is very powerfull. How do I process your flat file with my tool set?


Marc Clifton wrote:
It seems that XML is inefficient space wise, parsing is slow, and human readability is poor.

OK compared to what. ASCII is inefficient so lets ban that. The question is what do we gain. Now as stated earlier you can missuse it.
Parsing is slow, again compared to what? Parsing is much faster than me having to open your file and copy and paste the data I need.
Readability: have you ever had to go sort out a flat file that did not have the proper documentation or worse a binary. I have had to do both.

Now if none of the above impacts you XML may very well not apply to your task. It is not a magic solution that solves all of the worlds problems.

You mentioned your flat file. You may ask yourself how it is being used. Only for your app which never needs to be transfered or migrated? Then leave it be. It may be best to add export import to your solution than to use XML as the native format. THen if you do need these options you have it built in.

"I will find a new sig someday."
GeneralRe: Some questions about XML Pin
Marc Clifton12-Jan-03 14:42
mvaMarc Clifton12-Jan-03 14:42 
GeneralRe: Some questions about XML Pin
Michael A. Barnhart12-Jan-03 14:52
Michael A. Barnhart12-Jan-03 14:52 
GeneralRe: Some questions about XML Pin
Stephane Rodriguez.14-Jan-03 1:58
Stephane Rodriguez.14-Jan-03 1:58 
GeneralQuestion on xml encoding in C#, Pin
Bugoy9-Jan-03 10:29
Bugoy9-Jan-03 10:29 
GeneralRe: Question on xml encoding in C#, Pin
Michael A. Barnhart11-Jan-03 12:25
Michael A. Barnhart11-Jan-03 12:25 
QuestionHow to convert data in MFC object to XML Pin
The_wind8-Jan-03 19:21
The_wind8-Jan-03 19:21 
AnswerRe: How to convert data in MFC object to XML Pin
Michael A. Barnhart11-Jan-03 12:27
Michael A. Barnhart11-Jan-03 12:27 
GeneralUsing MSXML from C++ Pin
me7-Jan-03 19:35
me7-Jan-03 19:35 
GeneralRe: Using MSXML from C++ Pin
Michael A. Barnhart11-Jan-03 12:22
Michael A. Barnhart11-Jan-03 12:22 
GeneralRe: Using MSXML from C++ Pin
me12-Jan-03 12:36
me12-Jan-03 12:36 
GeneralRe: Using MSXML from C++ Pin
Michael A. Barnhart12-Jan-03 13:40
Michael A. Barnhart12-Jan-03 13:40 
GeneralRe: Using MSXML from C++ Pin
me12-Jan-03 13:59
me12-Jan-03 13:59 
GeneralRe: Using MSXML from C++ Pin
Michael A. Barnhart12-Jan-03 14:24
Michael A. Barnhart12-Jan-03 14:24 
GeneralRe: Using MSXML from C++ Pin
Retsof Nawor12-Jan-03 17:58
Retsof Nawor12-Jan-03 17:58 
GeneralRe: Using MSXML from C++ Pin
me12-Jan-03 18:50
me12-Jan-03 18:50 
GeneralRe: Using MSXML from C++ Pin
Michael A. Barnhart13-Jan-03 13:03
Michael A. Barnhart13-Jan-03 13:03 
GeneralHuman readable XML Pin
michaKFromParis7-Jan-03 6:42
michaKFromParis7-Jan-03 6:42 

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.