From: stardiviner <numbchild@gmail.com>
To: org-mode <emacs-orgmode@gnu.org>
Subject: How to use xml src block as data input?
Date: Fri, 30 Mar 2018 13:59:09 +0800 [thread overview]
Message-ID: <87efk214uq.fsf@gmail.com> (raw)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
I have a xml src block like this:
#+NAME: xml-sample
#+begin_src xml
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Example Feed</title>
<link href="http://example.org/"/>
<updated>2003-12-13T18:30:02Z</updated>
<author>
<name>John Doe</name>
</author>
<id>urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6</id>
<entry>
<title>Atom-Powered Robots Run Amok</title>
<link rel="alternate" href="http://example.org/2003/12/13/atom03"/>
<id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id>
<updated>2003-12-13T18:30:02Z</updated>
<summary>Some text.</summary>
</entry>
</feed>
#+end_src
How can I use this xml data as input in another src block?
I tried like this:
#+begin_src emacs-lisp :var sample=xml-sample
(elfeed-xml-parse-region sample)
#+end_src
But it reports no org-babel-execute for xml!
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCAAdFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAlq90i4ACgkQG13xyVro
msNFbgf+KgmjYmlNryZ9m63UBOmpCUhQ0zkwGQWzwYs7imvfhmPGBjYR/kIVyIp6
PDi7vlT6KfzewNxOSXAH8gM2Vgy61rbzEdZNqNAEpZC+Xeigh0gh7Zllajj7pSBA
6MiyzLO5fAsh0QsYHW3ZvCME1uFHe1g7zI9ojhdHgOoPW/U2jVw5VkY+PbnEA/jd
U5CsxoN562HWpvHTwHQX7cmRbm8xCx3zcyyKZyuxTNoCE2Js/ylyJIfZTnAJDd4o
IQj1pR0jIizvB4BR5E5DHXXLTAfYXfZJQYqFyY8eDgAvbZ/V9TURqGGhoXLCiH6T
DmnnObUBPJwBC2LK+VcvxFo4BE1oDw==
=F3Fs
-----END PGP SIGNATURE-----
next reply other threads:[~2018-03-30 6:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-30 5:59 stardiviner [this message]
2018-04-29 14:59 ` How to use xml src block as data input? stardiviner
2018-04-29 17:30 ` John Kitchin
2018-04-30 3:42 ` stardiviner
2018-04-30 9:47 ` Simonyi András
2018-04-30 13:34 ` John Kitchin
2018-05-01 3:36 ` [SOLVED] " stardiviner
2018-05-01 4:14 ` John Kitchin
2018-05-01 13:10 ` stardiviner
2018-04-29 15:14 ` Bastien
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=87efk214uq.fsf@gmail.com \
--to=numbchild@gmail.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).