[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] How to use xml src block as data input?
From: |
stardiviner |
Subject: |
[O] How to use xml src block as data input? |
Date: |
Fri, 30 Mar 2018 13:59:09 +0800 |
User-agent: |
mu4e 1.0; emacs 27.0.50 |
-----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-----
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [O] How to use xml src block as data input?,
stardiviner <=