From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Andrew W. Nosenko" Newsgroups: gmane.emacs.devel Subject: Re: Problems with xml-parse-string Date: Sat, 25 Sep 2010 02:43:41 +0300 Message-ID: References: <87pqw6d7nz.fsf@stupidchicken.com> <87zkvaiked.fsf@stupidchicken.com> <87vd5ymptn.fsf@stupidchicken.com> <87vd5x7ty2.fsf@stupidchicken.com> <87vd5wo48a.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 1285371834 18475 80.91.229.12 (24 Sep 2010 23:43:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 24 Sep 2010 23:43:54 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 25 01:43:53 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 1OzHvj-0007oh-Dy for ged-emacs-devel@m.gmane.org; Sat, 25 Sep 2010 01:43:51 +0200 Original-Received: from localhost ([127.0.0.1]:39306 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OzHvi-0007OD-Tr for ged-emacs-devel@m.gmane.org; Fri, 24 Sep 2010 19:43:50 -0400 Original-Received: from [140.186.70.92] (port=51750 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OzHvd-0007O8-11 for emacs-devel@gnu.org; Fri, 24 Sep 2010 19:43:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OzHvb-0007km-QN for emacs-devel@gnu.org; Fri, 24 Sep 2010 19:43:45 -0400 Original-Received: from mail-qw0-f41.google.com ([209.85.216.41]:63644) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OzHvb-0007kg-N1 for emacs-devel@gnu.org; Fri, 24 Sep 2010 19:43:43 -0400 Original-Received: by qwf7 with SMTP id 7so3131085qwf.0 for ; Fri, 24 Sep 2010 16:43:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=4hZ/ln5IpzpBdLDqkJUVgU07PNaeDtieJRumhaSYsEY=; b=v7K2UM0uXKdQAY3Tv5JBMV167RFaP0pV+HLE/3/nXH1NDgw15Fo3gLEEMDeYXmHkVu R98G7G81VCc9uRsvmXhSQYZ0MEnilXGTwZR51gBJ0d9A3GR769Rd+wicO4POEa3NebUQ tGyoz47PGzl3PcDKNYxZChs4+Rk82nT5tNixA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=HfJxQsR6vl/PutUj9KiVRDGJaTbxXxVbdNuTtKfyAp89OGu40C+gTv14L5++LBtPp7 BvM230kRiTmVdF+bgkBzzig9rMvNUknu9wyHNPIjcpwGy7bOv+X47E6sX4mJxlx7YcUD xu0Qr1odpx2KvJ4cufj4HR9k7DRmG/QoHau5w= Original-Received: by 10.224.10.198 with SMTP id q6mr2956109qaq.366.1285371822049; Fri, 24 Sep 2010 16:43:42 -0700 (PDT) Original-Received: by 10.229.25.201 with HTTP; Fri, 24 Sep 2010 16:43:41 -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:130816 Archived-At: On Fri, Sep 24, 2010 at 03:04, Stefan Monnier wr= ote: >> As for the :foo node names, we can map them to anything else if >> required. =A0Pick an invalid XML character -- any one will do, if this i= s >> important. > > How 'bout =3Dfoo ? > Another way to disappear the problem: just prefix _every_ name, and nodes and attributes. Nodes by the one symbol (e.g. by '.' (dot)), an attributes by another (e.g. by current ':' (colon)). becomes ".node" and ":attr" <:node :attr=3D"val/> becomes ".:node" and "::attr" <.node .attr=3D"val"/> becomes "..node" and ":.attr" if dot allowed at the first char of name at all In this case you avoid ambiguity whether 1st char is part of original name or introduced as the "type sign" by engine. Just because it always is the "type sign" and introduced by engine. --=20 Andrew W. Nosenko