Add a way to get a list of existing namespace declarations for an XML node

This just exposes the node->nsDef list without allocating additional C structures.