emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to use xml src block as data input?
@ 2018-03-30  5:59 stardiviner
  2018-04-29 14:59 ` stardiviner
  2018-04-29 15:14 ` Bastien
  0 siblings, 2 replies; 10+ messages in thread
From: stardiviner @ 2018-03-30  5:59 UTC (permalink / raw)
  To: org-mode

-----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-----

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-05-01 13:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-30  5:59 How to use xml src block as data input? stardiviner
2018-04-29 14:59 ` 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

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