emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Andrew Stribblehill <ads@wompom.org>
To: Ilya Shlyakhter <ilya_shl@alum.mit.edu>
Cc: emacs-orgmode@gnu.org
Subject: Re: suggestion: "native" orgmode XML export (and import?)
Date: Thu, 6 Aug 2009 22:58:27 +0100	[thread overview]
Message-ID: <1f38ae890908061458kc3d71fci7f944ae03c2400e@mail.gmail.com> (raw)
In-Reply-To: <1f38ae890908061457m7350ecfdw566e7ce9adc6f06e@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1632 bytes --]

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" <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).   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

[-- Attachment #1.2: Type: text/html, Size: 2162 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
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

  parent reply	other threads:[~2009-08-06 21:58 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-06 14:54 suggestion: "native" orgmode XML export (and import?) Ilya Shlyakhter
     [not found] ` <1f38ae890908061457m7350ecfdw566e7ce9adc6f06e@mail.gmail.com>
2009-08-06 21:58   ` Andrew Stribblehill [this message]
     [not found]     ` <4b11f87e0908062305ue685293m633213469c47d0e8@mail.gmail.com>
2009-08-07  9:13       ` Andrew Stribblehill
2009-08-07  9:46         ` Ilya Shlyakhter
2009-08-07 11:44           ` David Bremner
2009-08-08  5:48           ` Bastien
2009-08-08 20:25             ` Ilya Shlyakhter
2009-08-09 13:19               ` B Smith-Mannschott
2009-08-09 14:14                 ` Ilya Shlyakhter
2009-08-09 17:00               ` Sebastian Rose

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1f38ae890908061458kc3d71fci7f944ae03c2400e@mail.gmail.com \
    --to=ads@wompom.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=ilya_shl@alum.mit.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).