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: Wed, 22 Sep 2010 12:35:49 +0200 Organization: Programmerer Ingebrigtsen 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 X-Trace: dough.gmane.org 1285151792 15219 80.91.229.12 (22 Sep 2010 10:36:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 22 Sep 2010 10:36:32 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 22 12:36:31 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 1OyMgh-0001BG-69 for ged-emacs-devel@m.gmane.org; Wed, 22 Sep 2010 12:36:31 +0200 Original-Received: from localhost ([127.0.0.1]:49578 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OyMgg-0006Cz-7A for ged-emacs-devel@m.gmane.org; Wed, 22 Sep 2010 06:36:30 -0400 Original-Received: from [140.186.70.92] (port=53651 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OyMgH-0006CA-Vy for emacs-devel@gnu.org; Wed, 22 Sep 2010 06:36:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OyMgD-00028R-1A for emacs-devel@gnu.org; Wed, 22 Sep 2010 06:36:05 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:55101) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OyMgC-00027u-O4 for emacs-devel@gnu.org; Wed, 22 Sep 2010 06:36:01 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OyMg9-0000xQ-R2 for emacs-devel@gnu.org; Wed, 22 Sep 2010 12:35:57 +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 ; Wed, 22 Sep 2010 12:35:57 +0200 Original-Received: from larsi by cm-84.215.34.171.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Sep 2010 12:35:57 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 29 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.34.171.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEUAAAAAAANvZGIvIzoA AARZQlsDAQaGe2KzzJocChmRmn4gFy3Jt5H4AAACLUlEQVQ4jaWUz2vbMBTHZRg522Ayem0w9rxL SMiUH5cZjM8lQdjTLs3qCkJOWUkUdi0jJqeFsrTGt4wyk1Pa4LDU/9wkmTVemjLKvvbBfh9935Ns PYH3AEhgT5KiqPsxIUVR7N2bnDc865AOAyBLymFwYEL/1LOOp2t7ce6X1/gvFcKrsNbodI7m56Xv m2py2puff1pxgFzNGE7oWYQD/OF4eZcm3s0Jt1xfD+mCjpL7CsQfNbRZt71mWRKA0gkduLBxhn+U tgS3PbTKHO6EAQpnBXzbaaUI1XCZAwjHlwEdxZVvBe+rhhBK4ljUgPX4MnBpDGevjaW2NG8TY7qS BPh5EbhDCt/8ihc4MFsJmt4VGWh6+jDQWY3Sg1ljIE2QNnMYqGP985gOTFjyqmsjQCnGnRXfJXXo 0i90YMC3XhXH0/Yam5qo4UGdUjoyYccwjFhrJjXcLnOHC1mcXuh6dRxjE5n3CNdPeHFYGevHlOr0 KjbWNTx9WOAbAXokZHfYmxfDfhj13/UbUTTjgOx+QT9NN9toG6V8uq/I6SPoMZBGadjqqkAhOdAX YBs1fBs4xNkH7PJ9QIhDCLFEXOKPQrYDeFTJdhHrJJvL8W1CgBigWHIGVJuwqE8y0OX9J4nWY0P5 cJY+AyCXSgB/H6iWbam8yl+A9zdTkWWzxKwc+bHHmUmWVeYUwJZzn0vKDgYb2H9Wl5OisBp8LU+A pTBg+ftxSQbSEejmTpedCsXfgsHNWA4jXM4AAAAASUVORK5CYII= Mail-Copies-To: never X-Now-Playing: Tuxedomoon's _Cabin In The Sky_: "A Home Away" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:xgpMyTmX3cutGWMxGUIiKNBz4y8= 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:130601 Archived-At: Chong Yidong writes: > I've just checked in a change that renames the libxml functions to > xml-parse-html-string-internal and xml-parse-string-internal. I've also > made the parse tree format identical to that of xml.el. Euhm. Actually, I spent quite a bit of thought on the parse tree format that the functions spit out to make it regular, easy and fast to deal with. The format that xml.el spits out is more arcane and less comfortable to use. You can't say `(assq 'img (cdr node))' and stuff to get the image nodes, because the child nodes aren't a regular assoc list (because of the string fields) and stuff. So I protest the change. Anyway, I was going to rework the functions to be `html-parse-buffer' again, since in 99% of cases you have the html in a buffer, and putting it in a string just to call that function is odd. If you're concerned about previous users of xml.el being confused by the change in parse tree format, I don't think you have to worry all that much, because there are zero (0) users of the xml.el `xml-parse-string' in the Emacs tree. Please revert. -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen