Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×

Comment Re:And they said XML was easy to parse (Score 1) 140

Most of the things you ask about can be done with CSV as long as it's quoted properly. If it's not quoted properly, then it would be considered invalid. There's a nice RFC spec for it here: http://www.ietf.org/rfc/rfc4180.txt

What happens when your data contains \r or \n characters?

It's perfectly acceptable as long as you quote it (#6 example of RFC 4180). If Oracle doesn't support that, then I would say their implementation is broken.

What happens if the data has commas in it, and the .csv was generated by something that doesn't add quotes?

It's invalid

What do you do if your data is more complicated than a simple table?

I'd need a better example from you, but you can embed a csv record inside a csv field. It starts to get complicated really fast with all the "escaping" that needs to be done with the double-quotes. Such as something like a record containing "Last Name","First Name","Sub-Properties". The Sub-Properties could be embedded data such as sex, age, and height. For example:

"Doe","John","""male"",42,""5-10"""

Clearly, you can represent tree style data with CSV, but it has more flexibility than you think. Too many people roll their own CSV, because it seems so simple. Then they don't quote and escape quotes properly blaming any issues on garbage data.

Comment check out hipergate (Score 1) 153

You might check into www.hipergate.org. They have some CMS stuff as well as a variety of features. I think they are focused more on a diverse set of tools as opposed to concentrating on the specifics of a single area. How did they put it .. something like trying to be more horizontal than vertical. It has been awhile since I checked into them myself, so my comments could be a little dated.

Slashdot Top Deals

Thus spake the master programmer: "After three days without programming, life becomes meaningless." -- Geoffrey James, "The Tao of Programming"

Working...