{"action":"created","issue":{"url":"https://api.github.com/repos/ballerinalang/ballerina/issues/3143","repository_url":"https://api.github.com/repos/ballerinalang/ballerina","labels_url":"https://api.github.com/repos/ballerinalang/ballerina/issues/3143/labels{/name}","comments_url":"https://api.github.com/repos/ballerinalang/ballerina/issues/3143/comments","events_url":"https://api.github.com/repos/ballerinalang/ballerina/issues/3143/events","html_url":"https://github.com/ballerinalang/ballerina/issues/3143","id":249542811,"number":3143,"title":"XML concat does not deep copy elements","user":{"login":"SupunS","id":7834839,"avatar_url":"https://avatars3.githubusercontent.com/u/7834839?v=4","gravatar_id":"","url":"https://api.github.com/users/SupunS","html_url":"https://github.com/SupunS","followers_url":"https://api.github.com/users/SupunS/followers","following_url":"https://api.github.com/users/SupunS/following{/other_user}","gists_url":"https://api.github.com/users/SupunS/gists{/gist_id}","starred_url":"https://api.github.com/users/SupunS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SupunS/subscriptions","organizations_url":"https://api.github.com/users/SupunS/orgs","repos_url":"https://api.github.com/users/SupunS/repos","events_url":"https://api.github.com/users/SupunS/events{/privacy}","received_events_url":"https://api.github.com/users/SupunS/received_events","type":"User","site_admin":false},"labels":[{"id":684576167,"url":"https://api.github.com/repos/ballerinalang/ballerina/labels/Type/Bug","name":"Type/Bug","color":"1d76db","default":false}],"state":"closed","locked":false,"assignee":{"login":"SupunS","id":7834839,"avatar_url":"https://avatars3.githubusercontent.com/u/7834839?v=4","gravatar_id":"","url":"https://api.github.com/users/SupunS","html_url":"https://github.com/SupunS","followers_url":"https://api.github.com/users/SupunS/followers","following_url":"https://api.github.com/users/SupunS/following{/other_user}","gists_url":"https://api.github.com/users/SupunS/gists{/gist_id}","starred_url":"https://api.github.com/users/SupunS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SupunS/subscriptions","organizations_url":"https://api.github.com/users/SupunS/orgs","repos_url":"https://api.github.com/users/SupunS/repos","events_url":"https://api.github.com/users/SupunS/events{/privacy}","received_events_url":"https://api.github.com/users/SupunS/received_events","type":"User","site_admin":false},"assignees":[{"login":"SupunS","id":7834839,"avatar_url":"https://avatars3.githubusercontent.com/u/7834839?v=4","gravatar_id":"","url":"https://api.github.com/users/SupunS","html_url":"https://github.com/SupunS","followers_url":"https://api.github.com/users/SupunS/followers","following_url":"https://api.github.com/users/SupunS/following{/other_user}","gists_url":"https://api.github.com/users/SupunS/gists{/gist_id}","starred_url":"https://api.github.com/users/SupunS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SupunS/subscriptions","organizations_url":"https://api.github.com/users/SupunS/orgs","repos_url":"https://api.github.com/users/SupunS/repos","events_url":"https://api.github.com/users/SupunS/events{/privacy}","received_events_url":"https://api.github.com/users/SupunS/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2017-08-11T05:35:43Z","updated_at":"2017-11-13T10:10:49Z","closed_at":"2017-11-13T10:10:49Z","author_association":"CONTRIBUTOR","body":"By design, XML elements do not get deep-copied, when concatenating with another sequence.\r\nHowever, this leads to issues similar to #2927 and #2948."},"comment":{"url":"https://api.github.com/repos/ballerinalang/ballerina/issues/comments/343872247","html_url":"https://github.com/ballerinalang/ballerina/issues/3143#issuecomment-343872247","issue_url":"https://api.github.com/repos/ballerinalang/ballerina/issues/3143","id":343872247,"user":{"login":"SupunS","id":7834839,"avatar_url":"https://avatars3.githubusercontent.com/u/7834839?v=4","gravatar_id":"","url":"https://api.github.com/users/SupunS","html_url":"https://github.com/SupunS","followers_url":"https://api.github.com/users/SupunS/followers","following_url":"https://api.github.com/users/SupunS/following{/other_user}","gists_url":"https://api.github.com/users/SupunS/gists{/gist_id}","starred_url":"https://api.github.com/users/SupunS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SupunS/subscriptions","organizations_url":"https://api.github.com/users/SupunS/orgs","repos_url":"https://api.github.com/users/SupunS/repos","events_url":"https://api.github.com/users/SupunS/events{/privacy}","received_events_url":"https://api.github.com/users/SupunS/received_events","type":"User","site_admin":false},"created_at":"2017-11-13T10:10:49Z","updated_at":"2017-11-13T10:10:49Z","author_association":"CONTRIBUTOR","body":"XML is a reference type, and xml values created will always maintains the reference. If someone needs to copy the element while doing an operation (concat/setting children/etc), they can explicitly copy using `x.copy()`.\r\nSo this is not a bug, rather a design decision to support both behaviours."}}
{"actor":{"display_login":"SupunS"}}