[xml] Hash question: behavior of a hash with xmlHashAddEntry and xmlHashAddEntry2 types

Given that I have created a hash with xmlHashCreate:

1) Is it valid to populate it with calls to both xmlHashAddEntry and xmlHashAddEntry2 - in other words, having entries with one or two strings.
2) What is the behavior of xmlHashLookup and xmlHashLookup2 in such a case?

For example, is the following code valid?

 xmlHashAddEntry2(hash,BAD_CAST "Smokey",BAD_CAST "Bear",&bear);

And if so, what will  xmlHashLookup(hash,BAD_CAST "Smokey") return?

The hash documentation isn't clear on whether this is valid or not.

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