From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LcgBr-00078q-Ax for qemu-devel@nongnu.org; Thu, 26 Feb 2009 08:22:15 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LcgBp-00078C-Nl for qemu-devel@nongnu.org; Thu, 26 Feb 2009 08:22:14 -0500 Received: from [199.232.76.173] (port=37871 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LcgBp-000783-BR for qemu-devel@nongnu.org; Thu, 26 Feb 2009 08:22:13 -0500 Received: from pelvoux.gotadsl.co.uk ([81.6.248.91]:56288) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LcgBo-0002Mw-F3 for qemu-devel@nongnu.org; Thu, 26 Feb 2009 08:22:13 -0500 Received: from fozzy by ecrins.fosdick.home.net with local (Exim 4.69) (envelope-from ) id 1LcgEL-0005UP-Sw for qemu-devel@nongnu.org; Thu, 26 Feb 2009 13:24:49 +0000 Subject: RE: [Qemu-devel] Machine description, an alternativ using XML From: Steve Fosdick In-Reply-To: <004d01c99809$fbcacf70$f3606e50$@tt@home.se> References: <20090226093640.GA413@shareable.org> <004d01c99809$fbcacf70$f3606e50$@tt@home.se> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 26 Feb 2009 13:24:49 +0000 Message-Id: <1235654689.5894.132.camel@ecrins.fosdick.home.net> Mime-Version: 1.0 Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Thu, 2009-02-26 at 13:01 +0100, Torbj=C3=B6rn Andersson wrote: > Very readable. But, I dislike the complex DTD, which needs to be maintain= ed > when new machine designs arrive. I believe that Classes and Objects, with > relationships, is enough. To me the complex DTD is, instead, an advantage. XML already has a way of describing objects (elements) attributes of those objects (attributes) and objects nested within those objects (nested elements). When you use XML in this way to natively map your data as Microsoft did in the example you get more value from tools like the XML parser which can do much better checking on the input. The resulting file is also much more readable for a human. If neither the value from the XML tools or human readability are important then why use XML at all? Regards, Steve.