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 20:57:50 +0100 Message-ID: References: <87pqw6d7nz.fsf@stupidchicken.com> <87zkvaiked.fsf@stupidchicken.com> <87vd5ymptn.fsf@stupidchicken.com> <87zkv97u1k.fsf@stupidchicken.com> <87bp7pkcho.fsf@stupidchicken.com> <87vd5xejqf.fsf@stupidchicken.com> <87mxr9ei3b.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1285185490 15914 80.91.229.12 (22 Sep 2010 19:58:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 22 Sep 2010 19:58:10 +0000 (UTC) Cc: Leo , emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 22 21:58:05 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 1OyVS6-0003PS-Tl for ged-emacs-devel@m.gmane.org; Wed, 22 Sep 2010 21:58:03 +0200 Original-Received: from localhost ([127.0.0.1]:38940 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OyVS6-0007o6-72 for ged-emacs-devel@m.gmane.org; Wed, 22 Sep 2010 15:58:02 -0400 Original-Received: from [140.186.70.92] (port=48578 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OyVRy-0007mE-1S for emacs-devel@gnu.org; Wed, 22 Sep 2010 15:57:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OyVRw-0007Kc-6Q for emacs-devel@gnu.org; Wed, 22 Sep 2010 15:57:53 -0400 Original-Received: from mail-qy0-f176.google.com ([209.85.216.176]:54750) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OyVRw-0007KQ-3p for emacs-devel@gnu.org; Wed, 22 Sep 2010 15:57:52 -0400 Original-Received: by qyk2 with SMTP id 2so1339162qyk.0 for ; Wed, 22 Sep 2010 12:57:51 -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:cc:content-type; bh=CjzKTN2+zZ8Y6qYfqdXZmLbRz8QuDvNPdZoOehxGKR4=; b=n5/GMEuMZDlnh6ESTMUR31Iq2tzHd768TYnE32QItiAuIytVdFOWFpjnayOyx2P8hq 2l46H3Z7YOQLpOL3geBEJDtI2OayFrxNff56kuAWRi/rIjwcDwHueX2JX4VZSDWx4dVP c4ww+BLp4yPbSOGI7Hjsf+fdxmMKlItSdDIT8= 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 :cc:content-type; b=TeTn+Ca8cgofXESe+YWBe4ckl0PB4fVpIDmrYE2myJHP5Juy7iVU76XxncFrbE2HFe paarxAHuZbEiaRxhMg2Xashz0aPvzTT3XwvG3q4nA+wf7pQGv7DtJgHYywCBTLWVmAUt r/TrSrGu3euvW8LC3OJCf4ExtcjmKKFlTVgeE= Original-Received: by 10.229.235.6 with SMTP id ke6mr518777qcb.101.1285185471024; Wed, 22 Sep 2010 12:57:51 -0700 (PDT) Original-Received: by 10.229.31.139 with HTTP; Wed, 22 Sep 2010 12:57:50 -0700 (PDT) In-Reply-To: <87mxr9ei3b.fsf@stupidchicken.com> 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:130643 Archived-At: Chong Yidong writes: > Leo writes: >> I would think those packages use the public functions offered by xml.el >> to do their work. The structure should remain internal. > > The public functions return the parse tree. I don't think it's possible > to abstract that away. We could transform one form to another, use exclusively one form, and when it's needed to be compatible, translate it. It is purely a data structure which makes actually the transition easier, and since it comes from the same source (a very generic one, because it needs to describe other data, that's why in the first place it maps so well to Sxml and to Lisp generally). I don't like idea to have two representations of the same thing thou, and do the rewriting but it's the way it could be. Andy Wingo writes: > http://ssax.sourceforge.net/ > I would have thought also that htmlprag could be ported to elisp. > http://www.neilvandyke.org/htmlprag/ Yep, those are possible candidates for making it even easier, than writing by hand. I don't have problems reusing C libraries at all. Wojciech