Re: 'RE: [xml] xmlHash problem"'



tis 2002-08-13 klockan 13.09 skrev Daniel Veillard:

There is an api function, to get the length of a hash. But there isn't any,
to
get an hash entry by index.

  use the sanner function, you get a callback for each entry in the hash table
it's part of the API since day 1:
    typedef void (*xmlHashScannerFull)(void *payload, void *data,
                                 const xmlChar *name, const xmlChar *name2,
                                const xmlChar *name3);

  void                    xmlHashScan     (xmlHashTablePtr table,
                                           xmlHashScanner f, void *data);


I had no idea that this functionality was implemented.
xmlHashForEach might be a more natural name for this function?


-- 

Jens Askengren

Teknik i Media Sverige AB (publ)
Address: Södra förstadsgatan 2, SE-211 34 Malmö, Sweden
Tel: +46 40 601 57 00 (vx)
Mobile: +46 704 20 57 17
Fax: +46 40 601 57 99
http://www.tim.se

DISCLAIMER: "The information contained in this email and any attachment
is
confidential. It is intended only for the named addressee(s). If you are
not the named addressee please notify the sender immediately and do not
disclose, copy or distribute the contents to any other person other than
the intended addressee(s)."




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