Hi,
Actually, I have an additional layer to emulate DOM compliant API over
libxml. In that layer, I have a global list of xmlNsPtr for all
namespaces encountered by the nodes (and referenced in node->ns) of a
single XML document. And for each namespace definition (xmlns:xxx) set
on a node, a
The tradeoff here is speed. Again, if you are using standard LibXML2
API then everything will work as expected. I have no idea why do you
need to create new xmlNsPtr objects - this sounds like a waste of
CPU/memory to me but you might have your reasons. But this also breaks
a few assumptions on how