Re: [xml] Refactoring of the SAX interface for namespace support.



Daniel Veillard wrote:

Assuming no normalization or change is needed then the callback could then
operate directly from the memory buffer instead of neededing a string
allocation and duplication for each and every attribute value. A single
callback call per attribute or namespace but different:
    void attributeNs(const xmlChar *name, const xmlChar *value, int vlen,
                     const xmlChar *prefix, const xmlChar *URI);

Ok this makes sense to me.

Do you plan to also rewrite the tree builder on top of this API ?

        Fabrice
--
Fabrice Desré
France Télécom R&D/DTL/TAL
Tél: +(33) (0)2 96 05 31 43
Fax: +(33) (0)2 96 05 39 45
http://www.francetelecom.com/rd




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]