From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Stribblehill Subject: Re: suggestion: "native" orgmode XML export (and import?) Date: Thu, 6 Aug 2009 22:58:27 +0100 Message-ID: <1f38ae890908061458kc3d71fci7f944ae03c2400e@mail.gmail.com> References: <4b11f87e0908060754o7601aeb1uf9b8cebf44c29a24@mail.gmail.com> <1f38ae890908061457m7350ecfdw566e7ce9adc6f06e@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0687571253==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MZAyq-0008Cd-3o for emacs-orgmode@gnu.org; Thu, 06 Aug 2009 17:58:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MZAyk-0008AY-Rj for emacs-orgmode@gnu.org; Thu, 06 Aug 2009 17:58:35 -0400 Received: from [199.232.76.173] (port=42302 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MZAyk-0008AV-Pp for emacs-orgmode@gnu.org; Thu, 06 Aug 2009 17:58:30 -0400 Received: from mail-fx0-f205.google.com ([209.85.220.205]:60971) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MZAyk-0006hh-6r for emacs-orgmode@gnu.org; Thu, 06 Aug 2009 17:58:30 -0400 Received: by fxm1 with SMTP id 1so820334fxm.31 for ; Thu, 06 Aug 2009 14:58:28 -0700 (PDT) In-Reply-To: <1f38ae890908061457m7350ecfdw566e7ce9adc6f06e@mail.gmail.com> 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: Ilya Shlyakhter Cc: emacs-orgmode@gnu.org --===============0687571253== Content-Type: multipart/alternative; boundary=001636c923d7356df5047080382e --001636c923d7356df5047080382e Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I notice the experimental org-export.el contains an internal representation. It would probably be very easy for your python to parse the lisp s-expression it uses, if it were exported. On Aug 6, 2009 3:55 PM, "Ilya Shlyakhter" wrote: 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 _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --001636c923d7356df5047080382e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

I notice the experimental org-export.el contains an internal representat= ion. It would probably be very easy for your python to parse the lisp s-exp= ression it uses, if it were exported.

On Aug 6, 2009 3:55 PM, "Ilya Shlyakhter&= quot; <ilya_shl@alum.mit.edu> wrote:

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). =A0 I know about the DocBook exporter, but it maps orgmode'= s
concepts onto DocBook concepts such as articles. =A0 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. =A0Then 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. =A0But 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). =A0 Using orgmode's own
parser, and then exporting the results as XML, would be much more
reliable.

ilya


_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

--001636c923d7356df5047080382e-- --===============0687571253== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0687571253==--