From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nic James Ferrier Newsgroups: gmane.emacs.devel Subject: Re: Saving markup formats Date: Sun, 17 Jun 2007 23:27:53 +0100 Message-ID: <87sl8qnrme.fsf@kanga.tapsellferrier.co.uk> References: <871wgi9jzb.fsf@jidanni.org> <87odjlwpu1.fsf@jurta.org> <87ir9r1m99.fsf@jurta.org> <87myz2i9tj.fsf@jurta.org> <87r6ocx0tk.fsf_-_@jurta.org> <87vedmtnsz.fsf@jurta.org> <87vedmnvaf.fsf@kanga.tapsellferrier.co.uk> <4675A519.202@gmail.com> <87r6oafdkf.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1182119331 23467 80.91.229.12 (17 Jun 2007 22:28:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 17 Jun 2007 22:28:51 +0000 (UTC) Cc: Oliver Scholz , "Lennart Borgman \(gmail\)" , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 18 00:28:49 2007 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.50) id 1I03El-0005pN-KI for ged-emacs-devel@m.gmane.org; Mon, 18 Jun 2007 00:28:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I03El-0000Dh-34 for ged-emacs-devel@m.gmane.org; Sun, 17 Jun 2007 18:28:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I03Eh-0000Da-L8 for emacs-devel@gnu.org; Sun, 17 Jun 2007 18:28:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I03Eg-0000DO-N2 for emacs-devel@gnu.org; Sun, 17 Jun 2007 18:28:43 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I03Eg-0000DL-K0 for emacs-devel@gnu.org; Sun, 17 Jun 2007 18:28:42 -0400 Original-Received: from owls-tree.tapsellferrier.co.uk ([81.187.188.218] helo=owls-house.tapsellferrier.co.uk) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I03Eg-0004FC-3j for emacs-devel@gnu.org; Sun, 17 Jun 2007 18:28:42 -0400 Original-Received: from nicferrier.tapsellferrier.co.uk ([172.31.50.1] helo=localhost) by owls-house.tapsellferrier.co.uk with esmtp (Exim 4.60 #1 (Debian)) id 1I03AJ-0006lH-MI; Sun, 17 Jun 2007 23:24:11 +0100 Original-Received: by localhost (Postfix, from userid 1000) id BE5B9C06ED; Sun, 17 Jun 2007 23:27:53 +0100 (BST) In-Reply-To: <87r6oafdkf.fsf@jurta.org> (Juri Linkov's message of "Mon\, 18 Jun 2007 00\:57\:44 +0300") X-detected-kernel: Genre and OS details not recognized. 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:73185 Archived-At: Juri Linkov writes: >>> A good embedded XML parser would be needed. I've thought about taking >>> time out to add libxml2 support natively to emacs. That would do the >>> job very well. >> >> Did you try nxml-mode? > > Do you mean `nxml-parse-file'? I find it more restrictive than > `xml-parse-file' from xml.el. It fails on more XML files. > > Do you know a tidy-like XML parser for Emacs that would correct > not well-formed XML and not choke on them? This is the thing isn't it? Emacs has lots of good elisp based XML support but none of it quite cuts the mustard for all the different things one might do with XML. nxml is a very good editor... but not so good for DOM programming. xml.el has *some* good DOM stuff, but it's parser is a little weak and there's poor error support. Binding a really good XML library into Emacs would solve a bunch of low level problems. It would mean that we could reasonably write programs to manipulate a whole host of different documents and data formats. It would also mean that nxml-mode type functionality would be much easier to do. In my view what emacs needs in the word processing arena is the ability to read and write a lot of file formats (which are often XML based now) and manipulate those DOMs in a way that is consistent with the native editor. For example, I don't care if Emacs renders an OO document as something like an nxml document as long as I have ways of quickly adding a list item, making a new paragraph, inserting a formula into a table, etc... -- Nic Ferrier http://www.tapsellferrier.co.uk