From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: XML parsing advice Date: Sun, 27 Jan 2013 15:35:59 +0800 Message-ID: <87libfw00w.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1359271881 16084 80.91.229.3 (27 Jan 2013 07:31:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Jan 2013 07:31:21 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 27 08:31:40 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TzMiK-0001ls-Hz for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Jan 2013 08:31:40 +0100 Original-Received: from localhost ([::1]:57543 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TzMi2-0006In-TC for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Jan 2013 02:31:22 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:36788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TzMhu-0006Hd-S6 for help-gnu-emacs@gnu.org; Sun, 27 Jan 2013 02:31:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TzMhs-0007Mm-8v for help-gnu-emacs@gnu.org; Sun, 27 Jan 2013 02:31:14 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:43914) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TzMhs-0007Mi-2K for help-gnu-emacs@gnu.org; Sun, 27 Jan 2013 02:31:12 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TzMi7-0001gX-ON for help-gnu-emacs@gnu.org; Sun, 27 Jan 2013 08:31:27 +0100 Original-Received: from 114.250.117.48 ([114.250.117.48]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 27 Jan 2013 08:31:27 +0100 Original-Received: from eric by 114.250.117.48 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 27 Jan 2013 08:31:27 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 19 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 114.250.117.48 User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:OK6v3y1F4xW1grrRC9xtk81uI7c= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:88841 Archived-At: I've been asking around on #emacs about this but thought I'd try here as well: I've recently wanted to parse and edit XML files (both for EPUBs and the TMX translation memory format). The wiki[1] seems to indicate that things are largely broken: xpath.el and xpath-parser.el rely on very out of date libraries. Dom.el works, but apparently can't put its dom document back into XML. I need to go the whole round trip: parsing a file, editing nodes and attributes, and then saving the tree back to an XML file. I can start doing this myself, but wanted to check if anyone had any better interim solutions. Thanks! Eric [1] http://www.emacswiki.org/emacs/XmlParser