From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Re: How to extract raw link and description from the "link" element? Date: Tue, 24 Feb 2015 22:24:30 +0100 Message-ID: <87pp8zgfzl.fsf@wmi.amu.edu.pl> References: <87ioesm9sh.fsf@wmi.amu.edu.pl> <87h9ubt4p0.fsf@turing.flintfam.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42677) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQMy6-0000cT-Sr for emacs-orgmode@gnu.org; Tue, 24 Feb 2015 16:24:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YQMy3-0005Bx-Mg for emacs-orgmode@gnu.org; Tue, 24 Feb 2015 16:24:38 -0500 Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:52090) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQMy3-0005Bl-Fd for emacs-orgmode@gnu.org; Tue, 24 Feb 2015 16:24:35 -0500 In-reply-to: <87h9ubt4p0.fsf@turing.flintfam.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Samuel W. Flint" Cc: Org-Mode mailing list On 2015-02-24, at 21:50, Samuel W. Flint wrote: > Marcin Borkowski writes: > >> Hi all, >> >> so I have this: >> >> [[file:whatever.org][Some link]] >> >> How do I extract bith parts of this link programmatically? >> >> My use case is that I have an Org tree of links, and I want to export >> them to certain XML format. >> >> TIA, > > Have you considered a custom exporter? Just a little thought. That's exactly what I'm writing. It just hadn't occured to me to use the parsed version in the element tree =E2=80=93 I just concentrated on exporting the headlines (which contain the links). Stupid me. Thanks for this (obvious) tip! > Sam Best, --=20 Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University