{"action":"created","issue":{"url":"https://api.github.com/repos/martinblech/xmltodict/issues/85","labels_url":"https://api.github.com/repos/martinblech/xmltodict/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/martinblech/xmltodict/issues/85/comments","events_url":"https://api.github.com/repos/martinblech/xmltodict/issues/85/events","html_url":"https://github.com/martinblech/xmltodict/issues/85","id":56819802,"number":85,"title":"unparse preserve element order","user":{"login":"rotten","id":717719,"avatar_url":"https://avatars.githubusercontent.com/u/717719?v=3","gravatar_id":"","url":"https://api.github.com/users/rotten","html_url":"https://github.com/rotten","followers_url":"https://api.github.com/users/rotten/followers","following_url":"https://api.github.com/users/rotten/following{/other_user}","gists_url":"https://api.github.com/users/rotten/gists{/gist_id}","starred_url":"https://api.github.com/users/rotten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rotten/subscriptions","organizations_url":"https://api.github.com/users/rotten/orgs","repos_url":"https://api.github.com/users/rotten/repos","events_url":"https://api.github.com/users/rotten/events{/privacy}","received_events_url":"https://api.github.com/users/rotten/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/martinblech/xmltodict/labels/invalid","name":"invalid","color":"e6e6e6"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-06T14:45:14Z","updated_at":"2015-02-06T16:08:14Z","closed_at":"2015-02-06T15:38:18Z","body":"Unfortunately, some XML parsers (ie, third party API's) require the XML elements to be in a specific order.\r\n\r\nxmltodict.unparse() scrambles the orders of the elements.\r\n\r\nI built my elements, and all of the inner elements with OrderedDict()'s, before passing it to unparse, but it didn't seem to help at all.\r\n\r\nI saw an old issue where someone was complaining about this, and that it had apparently been resolved by a patch.  However that feature doesn't seem to be in the current code base.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/martinblech/xmltodict/issues/comments/73260740","html_url":"https://github.com/martinblech/xmltodict/issues/85#issuecomment-73260740","issue_url":"https://api.github.com/repos/martinblech/xmltodict/issues/85","id":73260740,"user":{"login":"martinblech","id":78768,"avatar_url":"https://avatars.githubusercontent.com/u/78768?v=3","gravatar_id":"","url":"https://api.github.com/users/martinblech","html_url":"https://github.com/martinblech","followers_url":"https://api.github.com/users/martinblech/followers","following_url":"https://api.github.com/users/martinblech/following{/other_user}","gists_url":"https://api.github.com/users/martinblech/gists{/gist_id}","starred_url":"https://api.github.com/users/martinblech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinblech/subscriptions","organizations_url":"https://api.github.com/users/martinblech/orgs","repos_url":"https://api.github.com/users/martinblech/repos","events_url":"https://api.github.com/users/martinblech/events{/privacy}","received_events_url":"https://api.github.com/users/martinblech/received_events","type":"User","site_admin":false},"created_at":"2015-02-06T16:08:14Z","updated_at":"2015-02-06T16:08:14Z","body":"No problem, @rotten , I'm glad that it finally worked for you!"}}