Allow for explicit namespace declaration when creating documents with DeclareNamespace().
Adjust logic of SetNamespace() to call C.xmlSearchNsByHref instead of explicitly walking the linked list when looking for existing namespaces.