From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Problems with xml-parse-string Date: Fri, 24 Sep 2010 17:53:00 +0200 Organization: Programmerer Ingebrigtsen Message-ID: 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> <87k4mb2mfu.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1285344470 30655 80.91.229.12 (24 Sep 2010 16:07:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 24 Sep 2010 16:07:50 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 24 18:07:49 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 1OzAoA-0007Bq-C8 for ged-emacs-devel@m.gmane.org; Fri, 24 Sep 2010 18:07:49 +0200 Original-Received: from localhost ([127.0.0.1]:49407 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OzAbe-0001hP-F8 for ged-emacs-devel@m.gmane.org; Fri, 24 Sep 2010 11:54:38 -0400 Original-Received: from [140.186.70.92] (port=45923 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OzAaz-00013D-F5 for emacs-devel@gnu.org; Fri, 24 Sep 2010 11:54:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OzAaH-0003qy-US for emacs-devel@gnu.org; Fri, 24 Sep 2010 11:53:17 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:37352) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OzAaH-0003qf-J9 for emacs-devel@gnu.org; Fri, 24 Sep 2010 11:53:13 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OzAaD-0000hk-1T for emacs-devel@gnu.org; Fri, 24 Sep 2010 17:53:09 +0200 Original-Received: from cm-84.215.34.171.getinternet.no ([84.215.34.171]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 Sep 2010 17:53:09 +0200 Original-Received: from larsi by cm-84.215.34.171.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 Sep 2010 17:53:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 31 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.34.171.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAFVBMVEUgBAEiBQK6L2VYGiQc AwAuDg4kBwZVlQh1AAACdUlEQVQ4jV2Uy5LqIBCGG6OuQUvWM1DjWulD1qkyM2uVIutgKrz/I5xu wKo5hyov9Ad/XxMI+F7OGGPfGw+xLSy24KOv+wr4Ghn6dZkw5GlaCeS85owrLt4nxAU9PjTZGOSs XqjQe4859l97VGyDnJRSx8cp2B07+RPmUwNZKXnso3cR8Rv7LsL7hpByH66eAxgRe38Xqd2QAN6f WGgMFOAWQFcAsL34GwYM4+KxH0Hp5hxgwejR38YQnvehOIGZgFBH33tU3z+52wNIwUCwE3WMQdph xPEGBKpUniiR6Yngrjc7dhcJqkjFnIUSiCahsX5vVpSygQRqcJYqbszZmYOV9cZEmavhxM0gSh3p aV99aIpX0HEy0gfJLnVeCXAVlUO2GtefybnMBVAeAg7XCroPChd06QdnDpvPKna4CCpdbVSpSWdf T7J/uDtwSRgkEgLYmwMFZr2h/xxukRJUeGGiccYdKYsCyHkiqSylm8/GhOVL0rkG1Cz0DC/PUuZT ipIgAyoBeQ9hQ9nZnrpEQLcpUVJuTOB4z2KmbdZ1Spjs+Lwxk6aDSTcAnGIBls4I+UuK6vAy1hku iGg+ihbd6BjcoSSoStlLSQB23Cr6FVBvTFWJiuLsREBwHhQWtVZLtoNwfrEDcOZSa91GlKW4u9yl kjmBJjV0B2fxSkKy1Uo1IjZPeykbHpL1nTmRZzp+Qp2dHGtrq5d+C1iS0DkWoFOSNAC48/Q432s3 CqhFOdG8WWseZdoYxKkSAjxwj+K7vADYFT8jKepE4Qu1r8BPOelEg7LdDgDjSF+qST0G2I6/F5Se xzjN4/9r1it4fqj/vTH+kJe/wQLYGsxREcYAAAAASUVORK5CYII= Mail-Copies-To: never X-Now-Playing: Boris's _Smile (Live in Prague)_: "You Were Holding An Unbrella" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:lWkQRsBZ1LXm0bYM5o3DKZeXz8c= 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:130784 Archived-At: Chong Yidong writes: > Could you elaborate? I'm looking at sxml's Wikipedia page, which has an > example where > > attr2="value2"> > Text node > > > > maps to > > (tag (@ (attr1 "value1") > (attr2 "value2")) > (nested "Text node") > (empty)) > > This seems pretty regular to me. The main difference between sxml and xml.el output is that it has the weird an unnecessary "@" node for the attributes and that it wastes a cons in the attributes, isn't it? Other than that it has the same problem that xml.el has, in that text nodes have to be special-cased, so you can't say assq or use simple descent without testing. -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen