{"action":"closed","issue":{"url":"https://api.github.com/repos/fabric8io/fabric8/issues/3654","labels_url":"https://api.github.com/repos/fabric8io/fabric8/issues/3654/labels{/name}","comments_url":"https://api.github.com/repos/fabric8io/fabric8/issues/3654/comments","events_url":"https://api.github.com/repos/fabric8io/fabric8/issues/3654/events","html_url":"https://github.com/fabric8io/fabric8/issues/3654","id":63935412,"number":3654,"title":"camel-new-endpoint-xml - Keep whitespace formatting","user":{"login":"davsclaus","id":477100,"avatar_url":"https://avatars.githubusercontent.com/u/477100?v=3","gravatar_id":"","url":"https://api.github.com/users/davsclaus","html_url":"https://github.com/davsclaus","followers_url":"https://api.github.com/users/davsclaus/followers","following_url":"https://api.github.com/users/davsclaus/following{/other_user}","gists_url":"https://api.github.com/users/davsclaus/gists{/gist_id}","starred_url":"https://api.github.com/users/davsclaus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davsclaus/subscriptions","organizations_url":"https://api.github.com/users/davsclaus/orgs","repos_url":"https://api.github.com/users/davsclaus/repos","events_url":"https://api.github.com/users/davsclaus/events{/privacy}","received_events_url":"https://api.github.com/users/davsclaus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fabric8io/fabric8/labels/forge","name":"forge","color":"eb6420"},{"url":"https://api.github.com/repos/fabric8io/fabric8/labels/V2","name":"V2","color":"fbca04"}],"state":"closed","locked":false,"assignee":{"login":"davsclaus","id":477100,"avatar_url":"https://avatars.githubusercontent.com/u/477100?v=3","gravatar_id":"","url":"https://api.github.com/users/davsclaus","html_url":"https://github.com/davsclaus","followers_url":"https://api.github.com/users/davsclaus/followers","following_url":"https://api.github.com/users/davsclaus/following{/other_user}","gists_url":"https://api.github.com/users/davsclaus/gists{/gist_id}","starred_url":"https://api.github.com/users/davsclaus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davsclaus/subscriptions","organizations_url":"https://api.github.com/users/davsclaus/orgs","repos_url":"https://api.github.com/users/davsclaus/repos","events_url":"https://api.github.com/users/davsclaus/events{/privacy}","received_events_url":"https://api.github.com/users/davsclaus/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-03-24T08:31:38Z","updated_at":"2015-03-24T11:00:53Z","closed_at":"2015-03-24T11:00:53Z","body":"We should try to keep the whitespace / new lines in the xml as-is. \r\n\r\nBut the DOM parser just ignores those by default. So when saving the file back it looks ugly.\r\n\r\n```\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n\r\n<beans xmlns=\"http://www.springframework.org/schema/beans\"\r\n       xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\r\n       xsi:schemaLocation=\"\r\n         http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd\r\n         http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd\">\r\n\r\n  <camelContext xmlns=\"http://camel.apache.org/schema/spring\">\r\n\r\n  </camelContext>\r\n\r\n</beans>\r\n```\r\n\r\nAfter\r\n```\r\n<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\r\n<beans xmlns=\"http://www.springframework.org/schema/beans\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"          http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd          http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd\">\r\n\r\n  <camelContext xmlns=\"http://camel.apache.org/schema/spring\">\r\n<endpoint id=\"yammer\" uri=\"We need Camel 2.15.1\"/>\r\n\r\n  </camelContext>\r\n\r\n</beans>\r\n```"}}