{"action":"created","issue":{"url":"https://api.github.com/repos/mono/mono/issues/2273","labels_url":"https://api.github.com/repos/mono/mono/issues/2273/labels{/name}","comments_url":"https://api.github.com/repos/mono/mono/issues/2273/comments","events_url":"https://api.github.com/repos/mono/mono/issues/2273/events","html_url":"https://github.com/mono/mono/pull/2273","id":119651978,"number":2273,"title":"remove XML declaration line","user":{"login":"ArsenShnurkov","id":188456,"avatar_url":"https://avatars.githubusercontent.com/u/188456?v=3","gravatar_id":"","url":"https://api.github.com/users/ArsenShnurkov","html_url":"https://github.com/ArsenShnurkov","followers_url":"https://api.github.com/users/ArsenShnurkov/followers","following_url":"https://api.github.com/users/ArsenShnurkov/following{/other_user}","gists_url":"https://api.github.com/users/ArsenShnurkov/gists{/gist_id}","starred_url":"https://api.github.com/users/ArsenShnurkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArsenShnurkov/subscriptions","organizations_url":"https://api.github.com/users/ArsenShnurkov/orgs","repos_url":"https://api.github.com/users/ArsenShnurkov/repos","events_url":"https://api.github.com/users/ArsenShnurkov/events{/privacy}","received_events_url":"https://api.github.com/users/ArsenShnurkov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-12-01T06:31:59Z","updated_at":"2015-12-24T11:12:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mono/mono/pulls/2273","html_url":"https://github.com/mono/mono/pull/2273","diff_url":"https://github.com/mono/mono/pull/2273.diff","patch_url":"https://github.com/mono/mono/pull/2273.patch"},"body":"fix for the bug\r\nhttps://bugzilla.xamarin.com/show_bug.cgi?id=36388\r\n\r\nfull story https://github.com/gitextensions/gitextensions/issues/2710"},"comment":{"url":"https://api.github.com/repos/mono/mono/issues/comments/167094514","html_url":"https://github.com/mono/mono/pull/2273#issuecomment-167094514","issue_url":"https://api.github.com/repos/mono/mono/issues/2273","id":167094514,"user":{"login":"esdrubal","id":1188095,"avatar_url":"https://avatars.githubusercontent.com/u/1188095?v=3","gravatar_id":"","url":"https://api.github.com/users/esdrubal","html_url":"https://github.com/esdrubal","followers_url":"https://api.github.com/users/esdrubal/followers","following_url":"https://api.github.com/users/esdrubal/following{/other_user}","gists_url":"https://api.github.com/users/esdrubal/gists{/gist_id}","starred_url":"https://api.github.com/users/esdrubal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esdrubal/subscriptions","organizations_url":"https://api.github.com/users/esdrubal/orgs","repos_url":"https://api.github.com/users/esdrubal/repos","events_url":"https://api.github.com/users/esdrubal/events{/privacy}","received_events_url":"https://api.github.com/users/esdrubal/received_events","type":"User","site_admin":false},"created_at":"2015-12-24T11:12:18Z","updated_at":"2015-12-24T11:12:18Z","body":"While doing a test case for your pull request I noticed that .NET SettingsPropertyValue.SerializedValue returns XML with a XML declaration, you can see it by running the code below.\r\n``` csharp\r\nSettingsProperty p = new SettingsProperty (\"property\",\r\n\t\t\t\t\t\t\t\t   typeof (WindowPositionList),\r\n\t\t\t\t\t\t\t\t   null,\r\n\t\t\t\t\t\t\t\t   true,\r\n\t\t\t\t\t\t\t\t   10,\r\n\t\t\t\t\t\t\t\t   SettingsSerializeAs.Xml,\r\n\t\t\t\t\t\t\t\t   null,\r\n\t\t\t\t\t\t\t\t   true,\r\n\t\t\t\t\t\t\t\t   false);\r\n\r\nSettingsPropertyValue v = new SettingsPropertyValue (p);\r\nv.PropertyValue =  new WindowPositionList ();\r\nConsole.WriteLine(v.SerializedValue);\r\n```\r\n\r\nWhile poking into reference source code I found that they do remove the XML declaration from the XML returned by SettingsPropertyValue.SerializedValue in [LocalFileSettingsProvider](http://referencesource.microsoft.com/#System/sys/system/configuration/LocalFileSettingsProvider.cs,482).\r\n\r\nIn Mono [LocalFileSettingsProvider](https://github.com/mono/mono/blob/b7a308f660de8174b64697a422abfc7315d07b8c/mcs/class/System/System.Configuration/LocalFileSettingsProvider.cs#L43) uses [CustomizableFileSettingsProvider](https://github.com/mono/mono/blob/b7a308f660de8174b64697a422abfc7315d07b8c/mcs/class/System/System.Configuration/CustomizableFileSettingsProvider.cs). I think this can be fixed by adding same logic as reference sources uses to remove XML declarations from the value returned [here](https://github.com/mono/mono/blob/b7a308f660de8174b64697a422abfc7315d07b8c/mcs/class/System/System.Configuration/CustomizableFileSettingsProvider.cs#L626)"}}