From mboxrd@z Thu Jan 1 00:00:00 1970 From: swflint@flintfam.org (Samuel W. Flint) Subject: Re: How to extract raw link and description from the "link" element? Date: Tue, 24 Feb 2015 15:28:16 -0600 Message-ID: <878ufnt2xb.fsf@turing.flintfam.org> References: <87ioesm9sh.fsf@wmi.amu.edu.pl> <87h9ubt4p0.fsf@turing.flintfam.org> <87pp8zgfzl.fsf@wmi.amu.edu.pl> 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]:43441) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQN1k-0007HC-L8 for emacs-orgmode@gnu.org; Tue, 24 Feb 2015 16:28:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YQN1h-00075X-Em for emacs-orgmode@gnu.org; Tue, 24 Feb 2015 16:28:24 -0500 Received: from [2600:3c00::f03c:91ff:fe70:9de9] (port=42309 helo=mail.flintfam.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQN1h-00075I-AD for emacs-orgmode@gnu.org; Tue, 24 Feb 2015 16:28:21 -0500 In-Reply-To: <87pp8zgfzl.fsf@wmi.amu.edu.pl> (Marcin Borkowski's message of "Tue, 24 Feb 2015 22:24:30 +0100") 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: Marcin Borkowski Cc: Org-Mode mailing list Marcin Borkowski writes: > 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! You are welcome! Glad I could help! Sam --=20 Samuel W. Flint swflint@flintfam.org (402) 517-8468 freenode: swflint http://flintfam.org/~swflint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) "The most dangerous phrase in the language is, 'We've always done it this way'." -- Grace Hopper