ballerina-platform / ballerina-lang

The Ballerina Programming Language

Home Page:https://ballerina.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: Invalid record generation with XML to record conversion

mindula opened this issue · comments

Description

Consider the below scenarios,

<root>
    <leafElement xmlns:custom="http://example.com"/>
</root>

Expected record

type Root record {|

|};

<example xmlns:prefix="http://example.com/">Sample text</example>

Expected record

type Example record {|
    string \#content;
|};

Steps to Reproduce

No response

Affected Version(s)

No response

OS, DB, other environment details and versions

No response

Related area

-> Compilation

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response