(namespaces: Namespaces, prefix: string)
| 721 | } |
| 722 | |
| 723 | const lookupNamespace = (namespaces: Namespaces, prefix: string): string | undefined => { |
| 724 | if (prefix === "xml") return xmlNamespace |
| 725 | for (let scope: Namespaces | undefined = namespaces; scope !== undefined; scope = scope.parent) { |
| 726 | if (Object.hasOwn(scope.declarations, prefix)) return scope.declarations[prefix] |
| 727 | } |
| 728 | return undefined |
| 729 | } |
| 730 | |
| 731 | /** |
| 732 | * Creates a channel that writes events as XML text. |
no outgoing calls
no test coverage detected