[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Linking Emacs with libxml2
From: |
Lars Magne Ingebrigtsen |
Subject: |
Linking Emacs with libxml2 |
Date: |
Mon, 06 Sep 2010 17:21:09 +0200 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) |
Apparently libxml2 comes with a parser for "real world" HTML, which is
very intriguing:
http://www.xmlsoft.org/html/libxml-HTMLparser.html
If Emacs provided a native interface to this function, we could say
(parse-html "file.html")
=> (:html (:head ...) (:body ...))
and get a nice parse tree out very fast. (Parsing HTML from Emacs Lisp
is rather slow.)
Has this been discussed before and rejected? It seems like an obvious
idea, and would enable both easier extraction of data from HTML files,
as well as writing a (simple) HTML renderer in Emacs Lisp.
--
(domestic pets only, the antidote for overdose, milk.)
address@hidden * Lars Magne Ingebrigtsen
- Linking Emacs with libxml2,
Lars Magne Ingebrigtsen <=
- Re: Linking Emacs with libxml2, Wojciech Meyer, 2010/09/06
- Re: Linking Emacs with libxml2, Chad Brown, 2010/09/06
- Re: Linking Emacs with libxml2, Lennart Borgman, 2010/09/06
- Re: Linking Emacs with libxml2, Chad Brown, 2010/09/06
- Re: Linking Emacs with libxml2, Chong Yidong, 2010/09/06
- Re: Linking Emacs with libxml2, joakim, 2010/09/06
- Re: Linking Emacs with libxml2, Jason Rumney, 2010/09/06
- Re: Linking Emacs with libxml2, Lars Magne Ingebrigtsen, 2010/09/06
- Re: Linking Emacs with libxml2, Lars Magne Ingebrigtsen, 2010/09/08