From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Wojciech Meyer Newsgroups: gmane.emacs.devel Subject: Re: Problems with xml-parse-string Date: Wed, 22 Sep 2010 13:17:47 +0100 Message-ID: References: <87pqw6d7nz.fsf@stupidchicken.com> <87zkvaiked.fsf@stupidchicken.com> <87vd5ymptn.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1285157881 9768 80.91.229.12 (22 Sep 2010 12:18:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 22 Sep 2010 12:18:01 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 22 14:17:59 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OyOGt-0002dr-HB for ged-emacs-devel@m.gmane.org; Wed, 22 Sep 2010 14:17:59 +0200 Original-Received: from localhost ([127.0.0.1]:52313 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OyOGs-0004Kq-V7 for ged-emacs-devel@m.gmane.org; Wed, 22 Sep 2010 08:17:58 -0400 Original-Received: from [140.186.70.92] (port=43659 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OyOGm-0004Ke-7L for emacs-devel@gnu.org; Wed, 22 Sep 2010 08:17:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OyOGi-0004kq-VJ for emacs-devel@gnu.org; Wed, 22 Sep 2010 08:17:52 -0400 Original-Received: from mail-qw0-f41.google.com ([209.85.216.41]:53020) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OyOGi-0004kl-QK for emacs-devel@gnu.org; Wed, 22 Sep 2010 08:17:48 -0400 Original-Received: by qwf7 with SMTP id 7so730236qwf.0 for ; Wed, 22 Sep 2010 05:17:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=Uy8U80V6ZDm7gu3k9ymy/+Iv0JP+DJUyvi1JmOCVp5Q=; b=J+P6APyd+JUcMLeviK1flU9O4AYpgSrh8fcTdIw+LcjHDeHyZcpq6CHCBX8HQWXHLK vfr91nBnhBDJOP5XNaHZEXeETolrV0uIWlCVqptBcB5ko8g/OSi9KFVH/+UdjZT1kFiN 6GfFCHPyb69CKZ8+v+UVf+EpAVebhTR+ER/t0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=m1scoCj0HmJoFRwkm3bPuNv1MpPLdonOZucfRPEjZ+QcTDM30iDmLwtYua0XjURR3j LMcUctMs2MfXMlsSDd5FufwObPl691znaTfd5KLf269eRNaz7whFufco4nSvCSPHN9rf n4Q3nPpojbxjH2lDh0YqmZpjx2v0+ue8jzEgE= Original-Received: by 10.224.89.67 with SMTP id d3mr85118qam.39.1285157867766; Wed, 22 Sep 2010 05:17:47 -0700 (PDT) Original-Received: by 10.229.31.139 with HTTP; Wed, 22 Sep 2010 05:17:47 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:130611 Archived-At: On Wed, Sep 22, 2010 at 1:09 PM, Lars Magne Ingebrigtsen w= rote: > Wojciech Meyer writes: > >> We should use S-XML. S-expression based XML for this and other places >> where we have XML. > > Why on earth would we shoot ourselves in our feet by converting XML to a > parse tree that looks like this? > > =A0 =A0 (*TOP* > =A0 =A0 =A0 (@ (*NAMESPACES* > =A0 =A0 =A0 =A0 =A0 =A0(HTML "http://www.w3.org/TR/REC-html40"))) > =A0 =A0 =A0 (RESERVATION > =A0 =A0 =A0 =A0 (NAME (@ (HTML:CLASS "largeSansSerif")) > =A0 =A0 =A0 =A0 =A0 "Layman, A") > =A0 =A0 =A0 =A0 (SEAT (@ (HTML:CLASS "largeMonotype") > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(CLASS "Y")) > =A0 =A0 =A0 =A0 =A0 =A0"33B") > =A0 =A0 =A0 =A0 (HTML:A (@ (HREF "/cgi-bin/ResStatus")) > =A0 =A0 =A0 =A0 =A0 =A0"Check Status") > =A0 =A0 =A0 =A0 (DEPARTURE "1997-05-24T07:55:00+1"))) Why not? What's the problem here? Having an Sxml framework will open new doors, and that's the appropriate method of doing that (IMHO). Personally, I think because it's: - well known standard in representing XML with s-expressions - it would be easier to port existing tools (like some Scheme Xpath query language to Elisp) - because it supports everything that XML supports Wojciech