You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import ballerina/data.xmldata;
import ballerina/io;
type A record {
@xmldata:Namespace {
uri: "http://www.example.com/",
prefix: "ex"
}
@xmldata:Name {
value: "A"
}
int a;
};
public function main() {
A a = {a: 1};
io:println(xmldata:toXml(a));
}
For the above code it gives <A><ex:a xmlns:ex="http://www.example.com/"><A>1</A></ex:a></A>.
The result should be <A><ex:A xmlns:ex="http://www.example.com/">1</ex:A></A>
Version
2201.10.2
Environment Details (with versions)
No response
The text was updated successfully, but these errors were encountered:
Description
$Subject
Steps to Reproduce
For the above code it gives
<A><ex:a xmlns:ex="http://www.example.com/"><A>1</A></ex:a></A>
.The result should be
<A><ex:A xmlns:ex="http://www.example.com/">1</ex:A></A>
Version
2201.10.2
Environment Details (with versions)
No response
The text was updated successfully, but these errors were encountered: