import ballerina/data.xmldata;
import ballerina/io;
public function main() returns error? {
record {string:RegExp \#content;}|error rec5 = xmldata:parseAsType(xml `<A>42</A>`);
io:println(rec5);
}
This code gives
error Error ("class java.lang.Long cannot be cast to class io.ballerina.runtime.internal.values.RegExpValue (java.lang.Long is in module java.base of loader 'bootstrap'; io.ballerina.runtime.internal.values.RegExpValue is in unnamed module of loader 'app')")
This code gives