[xml] =?utf-8?q?print_a_xmlHashTable?=



Hello,

I want to use the great xmlHashTable from the libxml2 library but i cant seem to print out its elements. Who 
knows how to deal with this problem?

Code example
------------------
xmlHashTablePtr hashtable;
int i = 0;
hashtable = xmlHashCreate(1);
xmlHashAddEntry(hashtable, "keyno1", i++);
xmlHashAddEntry(hashtable, "keyno2", i++);
-------------------

questions: 
- what does the the first parameter of xmlHashCreate do?
- how do i print out all key/value pairs of the hashtable? (whitout knowlede of the key name in the hashtable)

Cheerz, David



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