Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Improvement]: Support Interpolation for XML Namespace Declarations #43766

Open
Ajai-Suvendran opened this issue Jan 24, 2025 · 0 comments
Open
Labels

Comments

@Ajai-Suvendran
Copy link

Description

Currently, Ballerina does not support interpolation for defining XML namespaces dynamically. For instance, the following code snippet results in a compilation error:
xml:Element element = ;
This limitation makes it challenging to set XML namespaces dynamically based on runtime values or configurations. Instead, developers are forced to hardcode the namespace or resort to workarounds, such as constructing the XML element using string manipulation or additional steps.

Adding support for namespace interpolation would simplify the creation of XML documents with dynamic namespaces and improve developer experience. This functionality would align with Ballerina's goal of providing seamless XML handling capabilities.

Describe your problem(s)

No response

Describe your solution(s)

No response

Related area

-> Standard Library

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

@SasinduDilshara SasinduDilshara added the Lang/XML XML related issues label Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants