emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ilya Shlyakhter <ilya_shl@alum.mit.edu>
To: Bastien <bastienguerry@googlemail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: suggestion: "native" orgmode XML export (and import?)
Date: Sat, 8 Aug 2009 22:25:28 +0200	[thread overview]
Message-ID: <4b11f87e0908081325h6d3ec469id91fcdb739f5a201@mail.gmail.com> (raw)
In-Reply-To: <87fxc2g8kn.fsf@bzg.ath.cx>

> In the meantime, it would be useful to describe what kind of XML output
> do you want, because "XML" does not really describe anything per se.

I'm looking for XML output that would closely mirror the logical
structure of the org file, and that would contain all the information
in the orgfile (since it's easy to ignore the parts you don't need
during XML processing).  So, something like

<orgfile>
   <entry>
      <headline>Tasks</headline>
      <body>Here are the tasks I need to do</body>
      <children>
          <entry>
             <headline>Buy bread</headline>
             <todo-status>DONE</todo-status>
             <tags><tag>food</tag><tag>errands</tag></tags>
             <properties>
                 <property><name>Importance</name><value>1</value></property>

<property><name>Deadline</name><value><date><day>07</day><month>08</month><year>09</year></date></value></property>
             </properties>
           </entry>
        </children>
      </entry>
   </orgfile>

The details of the XML schema can of course change.   But it should
let you process org file data without having to parse any elements of
the org file (ideally, even dates) -- it would all be parsed by
orgmode's native parsing code and put into XML elements.

If there are questions about how to represent specific org elements in
XML I can try to write a more detailed spec.

thanks,

ilya




On Sat, Aug 8, 2009 at 7:48 AM, Bastien<bastienguerry@googlemail.com> wrote:
> Ilya Shlyakhter <ilya_shl@alum.mit.edu> writes:
>
>> That's great, thanks!  I should be able to take it from there.
>> It would be great if at some point this became official, and also
>> included an XML exporter and specification.
>
> FYI, I'll upload a slightly improved version of org-export.el next week,
> together with documentation on how to write an exporter.  But the basic
> structure of the parsed buffer is the same, you can use it safely.
>
> In the meantime, it would be useful to describe what kind of XML output
> do you want, because "XML" does not really describe anything per se.
>
> Best,
>
> --
>  Bastien
>

  reply	other threads:[~2009-08-08 20:25 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
     [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 [this message]
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=4b11f87e0908081325h6d3ec469id91fcdb739f5a201@mail.gmail.com \
    --to=ilya_shl@alum.mit.edu \
    --cc=bastienguerry@googlemail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).