From jewel@pixie.co.za Thu Aug 24 15:59:08 2000 Return-Path: Received: (qmail 2519 invoked from network); 24 Aug 2000 22:59:08 -0000 Received: from unknown (10.1.10.26) by m1.onelist.org with QMQP; 24 Aug 2000 22:59:08 -0000 Received: from unknown (HELO cpt-mailhost2.mweb.co.za) (196.2.48.239) by mta1 with SMTP; 24 Aug 2000 22:59:07 -0000 Received: from pta-dial-196-31-185-110.mweb.co.za by cpt-mailhost2.mweb.co.za (Sun Internet Mail Server sims.3.5.2000.01.05.12.18.p9) with ESMTP id <0FZT00D15JUAUR@cpt-mailhost2.mweb.co.za> for lojban@egroups.com; Fri, 25 Aug 2000 00:59:03 +0200 (GMT-2) Date: Thu, 24 Aug 2000 22:54:48 -0200 (GMT+2) Subject: Re: [lojban] le stura be la gihuste - XML In-reply-to: <4.2.2.20000824085154.00a693e0@127.0.0.1> X-Sender: jewel@svetlana.mweb.co.za To: "Bob LeChevalier (lojbab)" Cc: Lojban List Message-id: MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII From: John Leuner X-Yahoo-Message-Num: 4026 > >As for the implementation of these ideas, the best thing would be an > >XML-like database format. Unfortunately, I do not (yet) know much about > >XML parsers and therefore did not bother working on an appropriate set of > >XML tags. > > I have no idea even what XML is, and the only kind of parser I know > anything about is a YACC parser (and not much even then). XML is an extremely popular way of representing structured data. It allows you to put your data in a file where a tag indicates what "field" that data belongs to. I'm busy working on a java version of logflash and I have this xml document to specify what "piles" are used: This doesn't really demonstrate normal use of XML, because usually you have tags within tags, eg: //other definition stuff here //Entry for kakne here The power of XML is that it is platform-agnostic (UNIX/Windows/ .. whatever), it is popular (hence there are many freely available tools) and language-agnostic (you can use C, Java, Pascal or whatever you like). For the programmer or person entering / editing data it's very powerful because the part of the software that reads and interprets the syntax of the file is provided by the XML parser. This means less work for the programmer and makes it very easy to write a program that converts from the XML to some other format. What I haven't said about XML here is that it allows you to specify a type of "grammar" which dicates or controls the format of the XML document. In conjunction with the "grammar" you can easily check for the syntactic correctness of a document, making life easier for someone editing the document and for a program that has to read the document. John Leuner