From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ilya Shlyakhter Subject: suggestion: "native" orgmode XML export (and import?) Date: Thu, 6 Aug 2009 16:54:00 +0200 Message-ID: <4b11f87e0908060754o7601aeb1uf9b8cebf44c29a24@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MZ4M0-0000Gx-4A for emacs-orgmode@gnu.org; Thu, 06 Aug 2009 10:54:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MZ4Ly-0000FI-HX for emacs-orgmode@gnu.org; Thu, 06 Aug 2009 10:54:03 -0400 Received: from [199.232.76.173] (port=54064 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MZ4Ly-0000F5-D2 for emacs-orgmode@gnu.org; Thu, 06 Aug 2009 10:54:02 -0400 Received: from ey-out-1920.google.com ([74.125.78.149]:43653) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MZ4Lx-0006lJ-Rf for emacs-orgmode@gnu.org; Thu, 06 Aug 2009 10:54:02 -0400 Received: by ey-out-1920.google.com with SMTP id 5so393551eyb.24 for ; Thu, 06 Aug 2009 07:54:00 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org I'm not an emacs-lisp programmer, but I'd like to write scripts (ideally in Python) to generate custom reports from my .org files. What would help a lot, is if there was a command to export an .org file to a "native" XML format that would mirror the org file's structure and all its logical elements (tags, properties, drawers, dates etc). I know about the DocBook exporter, but it maps orgmode's concepts onto DocBook concepts such as articles. I'm a longtime orgmode user and it would be much simpler to write a program in terms of the familiar org concepts (hierarchical entries, tags, properties etc). It would also be great if there was a way to import such an XML file back into org. Then one could e.g. take Toodledo.com tasks and transform them into an orgmode file. There is an orgmode Python reader at http://www.members.optusnet.com.au/~charles57/GTD/orgnode.html and I plan to use that for now. But it doesn't support all orgmode features, and more importantly it does its own parsing of orgfiles (so may not keep up with any future changes). Using orgmode's own parser, and then exporting the results as XML, would be much more reliable. ilya