From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,218b3332778031f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-15 13:48:12 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!postnews1.google.com!not-for-mail From: dennison@telepath.com (Ted Dennison) Newsgroups: comp.lang.ada Subject: Re: A little database Date: 15 Nov 2002 13:48:11 -0800 Organization: http://groups.google.com/ Message-ID: <4519e058.0211151348.4e882a74@posting.google.com> References: <3dd49c15$0$303$bed64819@news.gradwell.net> NNTP-Posting-Host: 65.115.221.98 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1037396891 17397 127.0.0.1 (15 Nov 2002 21:48:11 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 15 Nov 2002 21:48:11 GMT Xref: archiver1.google.com comp.lang.ada:30963 Date: 2002-11-15T21:48:11+00:00 List-Id: porton@ex-code.com (Victor Porton) wrote in message news:<3dd49c15$0$303$bed64819@news.gradwell.net>... > I want to keep a little database (containing information about several > Web sites) on the disk. > > It is desirable (but not necessary) to have the file format > portable among platforms and compilers (however I use only GNAT). > > In your opinion, All, should I use XML or just 'Read/'Write etc. > attributes? Or may be there are a special Ada library for such small > databases in disk files? > > Well, the database shall be editable by the user with my GUI. For a database, the most sensible portable format would be CSV. That way it can be imported, exported, edited, and manipulated with any database or spreadsheet tool you users might have or want (even a text editor). Unless you have complicated hierarchal relationships that can't be easily expressed in tabular format, XML is overkill (and relatively poorly supported overkill, at that). I don't know of any Ada support for creating CSV's, but the format is trivial to generate with standard Text_IO calls, and OpenToken (http://www.telepath.com/~dennison/Ted/OpenToken/OpenToken.html ) has support for parsing it.