Description:
When converting a record object to XML, attributes from included types are incorrectly treated as nested elements rather than attributes. This issue occurs specifically when the record uses type inclusion to inherit attributes, which should be rendered as XML attributes, not child elements. Below are the examples demonstrating the expected and the actual XML output for clarity:
type Child record {
string childField;
@xmldata:Attribute
string childAttr?;
*Parent;
};
type Parent record {
@xmldata:Attribute
string parentAttr?;
};
Description: When converting a record object to XML, attributes from included types are incorrectly treated as nested elements rather than attributes. This issue occurs specifically when the record uses type inclusion to inherit attributes, which should be rendered as XML attributes, not child elements. Below are the examples demonstrating the expected and the actual XML output for clarity:
Generated
Expected
Steps to reproduce:
Affected Versions: 2201.9.2-test-pack
OS, DB, other environment details and versions:
Related Issues (optional):
Suggested Labels (optional):
Suggested Assignees (optional):