Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Keep It Simple, Stupid
 
PerlMonks  

Re(5): XML for databases?!?! Is it just me or is the rest of the world nutz?

by dsheroh (Parson)
on May 24, 2002 at 15:34 UTC ( #169111=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Re: Re: XML for databases?!?! Is it just me or is the rest of the world nutz?
in thread XML for databases?!?! Is it just me or is the rest of the world nutz?

One method call, validate().

And what, in the absence of a DTD, is the XML validated against? Simply that the brackets are all matched and it's syntactically valid? That's the same level of "validation" that you get by counting the commas in each row of a CSV file. Neither one tells you whether the data is formatted appropriately for your intended use.


Comment on Re(5): XML for databases?!?! Is it just me or is the rest of the world nutz?
Re: Re(5): XML for databases?!?! Is it just me or is the rest of the world nutz?
by mirod (Canon) on May 24, 2002 at 15:56 UTC

    By all means, if you are more at ease with CSV use CSV. It might be really well-suited to what you are doing and you might not need anything else. I will also be the first to admit that XML is no silver bullet. If people want to throw garbage at you they can throw XML garbage just as well as they would send you useless CSV.

    OTOH in the real world XML takes care of encodings (ever received UTF-8 data when you were expecting "regular" latin1?), most people feel that it is more self-documented than CSV. It is also more flexible: it can model more than just tabular data and it is relatively easy to write XML code that can survive moderate changes in the input format (such as new element types being added) without upgrading. The tools are also pretty good, at least on par with the tools you can find for CSV.

    In short there is really no need to change all of your tools and all of your processes just to become buzzword-compliant. I don't think any one is advocating this BTW. So stick to CSV if you want to.

    I just want to point out that there is really no need to try to convince people that CSV is better than XML. XML is just a rather powerful and well thought-out low-level standard for documents and data interchange. I hope you don't spend your days writing low-level CSV code and that the main logic of your applications is a little bit more interesting ;--) So really whether the underlying format of the data is CSV or XML is not that important. Choose the one you are comfortable with, provided it's powerful enough to work now and in the future.

    You know, I rather like ASCII myself, but I don't really try to convince people who use Unicode that they stuff is useless, and I must admit that sometimes 8 bits just don't cut it and I use Unicode.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://169111]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2014-04-19 23:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls