From: Brett Viren <bv@bnl.gov>
To: Norman Walsh <ndw@nwalsh.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: XML dump of org file?
Date: Thu, 22 Sep 2016 13:36:43 -0400 [thread overview]
Message-ID: <ir47fa325w4.fsf@lycastus.phy.bnl.gov> (raw)
In-Reply-To: <87twd7q5p3.fsf@gmail.com> (Aaron Ecay's message of "Thu, 22 Sep 2016 17:07:04 +0100")
[-- Attachment #1: Type: text/plain, Size: 507 bytes --]
Aaron Ecay <aaronecay@gmail.com> writes:
> Have a look at the org-element library,
Just to add, there are circular dependencies in this data structure due
to ":parent" and potentially some of the ":structure" elements. They
obviously need to be broken to avoid infinite loops.
Here my hackish attempt to deal with this in order to dump org-element
to JSON:
https://github.com/brettviren/joyful-web/blob/master/joy/org2json.el
See org-json-straigten-tree for how I nullified these elements.
-Brett.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 800 bytes --]
prev parent reply other threads:[~2016-09-22 18:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-21 21:52 XML dump of org file? Norman Walsh
2016-09-22 16:07 ` Aaron Ecay
2016-09-22 17:36 ` Brett Viren [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ir47fa325w4.fsf@lycastus.phy.bnl.gov \
--to=bv@bnl.gov \
--cc=emacs-orgmode@gnu.org \
--cc=ndw@nwalsh.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.