From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Problems with xml-parse-string Date: Fri, 24 Sep 2010 07:38:08 +0200 Organization: Organization?!? Message-ID: <87k4mb3dmn.fsf@lola.goethe.zz> References: <87pqw6d7nz.fsf@stupidchicken.com> <87zkvaiked.fsf@stupidchicken.com> <87vd5ymptn.fsf@stupidchicken.com> <87vd5x7ty2.fsf@stupidchicken.com> <87vd5wo48a.fsf@stupidchicken.com> <8739t03q2g.fsf@stupidchicken.com> <4C9C1107.5010000@harpegolden.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1285306733 2280 80.91.229.12 (24 Sep 2010 05:38:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 24 Sep 2010 05:38:53 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 24 07:38:52 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 1Oz0zf-0000R5-O5 for ged-emacs-devel@m.gmane.org; Fri, 24 Sep 2010 07:38:48 +0200 Original-Received: from localhost ([127.0.0.1]:59328 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oz0zb-0002Zz-Nd for ged-emacs-devel@m.gmane.org; Fri, 24 Sep 2010 01:38:43 -0400 Original-Received: from [140.186.70.92] (port=36805 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oz0zN-0002Yv-Mm for emacs-devel@gnu.org; Fri, 24 Sep 2010 01:38:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oz0zJ-0007rW-Ky for emacs-devel@gnu.org; Fri, 24 Sep 2010 01:38:29 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:48164) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oz0zJ-0007rE-6S for emacs-devel@gnu.org; Fri, 24 Sep 2010 01:38:25 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Oz0zF-0000Lq-8o for emacs-devel@gnu.org; Fri, 24 Sep 2010 07:38:21 +0200 Original-Received: from p508ed727.dip.t-dialin.net ([80.142.215.39]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 Sep 2010 07:38:21 +0200 Original-Received: from dak by p508ed727.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 Sep 2010 07:38:21 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 35 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: p508ed727.dip.t-dialin.net X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:8TPxUB6WYN48VgYta+3ElgglEmE= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:130725 Archived-At: David De La Harpe Golden writes: > On 24/09/10 02:09, Chong Yidong wrote: >> Lars Magne Ingebrigtsen writes: >> >>> Stefan Monnier writes: >>> >>>>> As for the :foo node names, we can map them to anything else if >>>>> required. Pick an invalid XML character -- any one will do, if this is >>>>> important. >>>> >>>> How 'bout =foo ? >>> >>> Looks good to me. >> >> If we're going to make a clean break with the old xml.el parse tree >> format, I think it makes more sense to go with sxml. Is there any >> technical reason not to? > > I'm not too convinced mapping xml element and attribute names to > interned lisp symbols at all is particularly desirable. Not that I > personally use xml-... in emacs lisp much/ever, but I have used common > lisp xml parsing in the past and seem to remember that using strings > was overall less problematic than symbols (and it wasn't just down to > case - > common lisp only looks case insensitive), just generally easier to be > non-lossy and non-cluttering-symbol-table-with-random-xml-crap. Read > some transient xml message once? have some useless symbols hanging > round forever (for small values of forever). You can scan through interned symbols (or uninterned ones) much faster than through strings because they compare EQ. -- David Kastrup