[Bug]: Including redundant xmlns
field when generating records from an xml value
#43721
Labels
xmlns
field when generating records from an xml value
#43721
Description
When generating records from an XML value, a redundant field
'xmlns
is added to the record even though it is not necessary. This issue occurs when XML elements include namespace declarations, leading to an additional field being generated for the default namespace attribute. The redundant field causes data mapping issues.**Input XML: **
**Generated record: **
**Expected record: **
Steps to Reproduce
Provide an XML value with a namespace declaration (e.g., xmlns="http://example.org").
Use the record generation tool to create a record from the XML.
Observe that the generated record includes a redundant xmlns field.
Affected Version(s)
2201.9.3
OS, DB, other environment details and versions
No response
Related area
-> Other Area
Related issue(s) (optional)
https://github.com/wso2-enterprise/internal-support-ballerina/issues/861
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered: