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);
xmlHashAddEntry(hash,"Smokey",&bandit);

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

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

<file:///usr/share/doc/packages/libxml2-devel/html/libxml-hash.html#xmlHashLookup>
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to