provide overload for getNamespaces on document