mongoBackend doesn't use that informaton at all for vector items, but I think your approach is correct, making both JSON and XML homogeneous.