import ballerina/data.xmldata;
import ballerina/io;
type A record {
@xmldata:Namespace {
uri: "http://www.example.com",
prefix: "ex"
}
int[] name;
};
public function main() {
A a = {name: [1, 2, 3]};
io:println(xmldata:toXml(a)); // Output: <A><name>1</name><name>2</name><name>3</name></A>
}
The output doesn't contains any namespace informtions.
Description
The output doesn't contains any namespace informtions.
Steps to Reproduce
$Description
Version
2201.10.2
Environment Details (with versions)
No response