Yeah that's fine, but each call to ``$serializer->serialize()`` gets its own document. The namespace would only be added for the first call.