defineElementNS function
Implementation
defineElementNS(String uri, String name, ElementCreator creator) {
_registries[uri] ??= {};
final registry = _registries[uri]!;
if (registry.containsKey(name)) {
throw Exception('An element with uri "$uri" and name "$name" has already been defined.');
}
registry[name] = creator;
}