From mboxrd@z Thu Jan 1 00:00:00 1970 From: B Smith-Mannschott Subject: Re: suggestion: "native" orgmode XML export (and import?) Date: Sun, 9 Aug 2009 15:19:13 +0200 Message-ID: <28c656e20908090619r3ee89747we76b6d540b68cf95@mail.gmail.com> References: <4b11f87e0908060754o7601aeb1uf9b8cebf44c29a24@mail.gmail.com> <1f38ae890908061457m7350ecfdw566e7ce9adc6f06e@mail.gmail.com> <1f38ae890908061458kc3d71fci7f944ae03c2400e@mail.gmail.com> <4b11f87e0908062305ue685293m633213469c47d0e8@mail.gmail.com> <1f38ae890908070213x1fabc9e3o75db945d9f86b2fa@mail.gmail.com> <4b11f87e0908070246rc21ec59k99b0f6ddaac84be3@mail.gmail.com> <87fxc2g8kn.fsf@bzg.ath.cx> <4b11f87e0908081325h6d3ec469id91fcdb739f5a201@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ma8J0-0001rX-Ow for emacs-orgmode@gnu.org; Sun, 09 Aug 2009 09:19:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ma8Iv-0001q0-BZ for emacs-orgmode@gnu.org; Sun, 09 Aug 2009 09:19:21 -0400 Received: from [199.232.76.173] (port=58486 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ma8Iv-0001pg-49 for emacs-orgmode@gnu.org; Sun, 09 Aug 2009 09:19:17 -0400 Received: from mx20.gnu.org ([199.232.41.8]:26210) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ma8Iu-0000f2-NL for emacs-orgmode@gnu.org; Sun, 09 Aug 2009 09:19:16 -0400 Received: from mail-fx0-f205.google.com ([209.85.220.205]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ma8It-0008D5-8w for emacs-orgmode@gnu.org; Sun, 09 Aug 2009 09:19:15 -0400 Received: by fxm1 with SMTP id 1so1855120fxm.31 for ; Sun, 09 Aug 2009 06:19:13 -0700 (PDT) In-Reply-To: <4b11f87e0908081325h6d3ec469id91fcdb739f5a201@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 On Sat, Aug 8, 2009 at 22:25, Ilya Shlyakhter wrote: >> 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). =C2=A0So, something like > > > =C2=A0 > =C2=A0 =C2=A0 =C2=A0Tasks > =C2=A0 =C2=A0 =C2=A0Here are the tasks I need to do > =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Buy bread > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 DONE > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 fooderran= ds > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 I= mportance1 > > Deadline070809 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 > =C2=A0 > > The details of the XML schema can of course change. =C2=A0 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. > Out of curiosity, how would you want to handle textual content? Pass it through unchanged with org's wiki-like markup in tact, or somehow xml-ified?: *foo* --> *foo* *foo* --> foo // Ben