[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Linking Emacs with libxml2
From: |
Andrew W. Nosenko |
Subject: |
Re: Linking Emacs with libxml2 |
Date: |
Fri, 10 Sep 2010 17:12:02 +0300 |
On Fri, Sep 10, 2010 at 13:46, Stefan Monnier <address@hidden> wrote:
>>> Hm. I guess so. I'll change the html-parse-buffer function into a
>>> html-parse-string function instead.
>> I think it is still useful to provide a html-parse-buffer function that
>> can be more efficient when the intermediate string copy is not needed.
>
> Agreed, but right now it's not clear when/how such an intermediate copy
> can be avoided.
Try the xml*IO family of functions. E.g. instead of xmlReadDoc() try
xmlReadIO(). Indeed, the libxml2 doesn't need the whole document in
memory for parse it. IO callbacks supply as mech as need data when it
requested by underlying parser.
>
> BTW, another question regarding libxml2: does it provide functions to do
> partial parses (e.g. to know the syntactic context of a particular
> buffer position)?
>
>
> Stefan
>
>
--
Andrew W. Nosenko <address@hidden>
- Re: Linking Emacs with libxml2, (continued)
- Re: Linking Emacs with libxml2, Leo, 2010/09/13
- Re: Linking Emacs with libxml2, Lars Magne Ingebrigtsen, 2010/09/13
- Re: Linking Emacs with libxml2, Leo, 2010/09/13
- Re: Linking Emacs with libxml2, Chad Brown, 2010/09/13
- Re: Linking Emacs with libxml2, Chad Brown, 2010/09/13
- Re: Linking Emacs with libxml2, Leo, 2010/09/13
- Re: Linking Emacs with libxml2, Christian Faulhammer, 2010/09/13
- Re: Linking Emacs with libxml2, Andreas Schwab, 2010/09/10
- Re: Linking Emacs with libxml2,
Andrew W. Nosenko <=
- Re: Linking Emacs with libxml2, Christian Faulhammer, 2010/09/09
- Re: Linking Emacs with libxml2, Lars Magne Ingebrigtsen, 2010/09/09
- Re: Linking Emacs with libxml2, Christian Faulhammer, 2010/09/09
- Re: Linking Emacs with libxml2, Lars Magne Ingebrigtsen, 2010/09/09
Re: Linking Emacs with libxml2, Chong Yidong, 2010/09/06
Re: Linking Emacs with libxml2, Stefan Monnier, 2010/09/06