From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4fa40f744fcf5a24eed3c9eafcac9145@quintile.net> From: "Steve Simon" Date: Mon, 21 May 2007 23:34:37 +0100 To: 9fans@cse.psu.edu Subject: Re: [9fans] XML In-Reply-To: <1179767515.8323.193.camel@linux.site> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 6e2f69be-ead2-11e9-9d60-3106f5b1d025 I built a text file to described the menu interface for the LCD front panels my employer makes. Initialy I did this as an NDB-like file. I added the concept of a "end" keyword to terminate a hierarchal block, and allowed a freestanding token to imply a boolean token=true. The DTD for this format was defined in another text file which was massaged by a few lines of awk into an initialised table, compiled into all applications that read the files (the format was fixed). People didn't like it as it was not "standard XML" so when I have the chance to rework it I went for XML and a DTD. Personally I prefer the NDB style implementation, my compiled in spec gave much more accurate validation than a DTD, and this was lightweight enought to be easily be done on the embedded system. Overall, having completed the changes a year or so ago, XML seems to have added a load more angle brackets, quotes and poorer validation, in return for no real reward. But at least my files are now standard, so thats ok. -Steve