{"action":"created","issue":{"url":"https://api.github.com/repos/tabalinas/jsgrid/issues/822","repository_url":"https://api.github.com/repos/tabalinas/jsgrid","labels_url":"https://api.github.com/repos/tabalinas/jsgrid/issues/822/labels{/name}","comments_url":"https://api.github.com/repos/tabalinas/jsgrid/issues/822/comments","events_url":"https://api.github.com/repos/tabalinas/jsgrid/issues/822/events","html_url":"https://github.com/tabalinas/jsgrid/issues/822","id":239769851,"number":822,"title":"XML data source","user":{"login":"Paperinik12","id":19560316,"avatar_url":"https://avatars3.githubusercontent.com/u/19560316?v=3","gravatar_id":"","url":"https://api.github.com/users/Paperinik12","html_url":"https://github.com/Paperinik12","followers_url":"https://api.github.com/users/Paperinik12/followers","following_url":"https://api.github.com/users/Paperinik12/following{/other_user}","gists_url":"https://api.github.com/users/Paperinik12/gists{/gist_id}","starred_url":"https://api.github.com/users/Paperinik12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Paperinik12/subscriptions","organizations_url":"https://api.github.com/users/Paperinik12/orgs","repos_url":"https://api.github.com/users/Paperinik12/repos","events_url":"https://api.github.com/users/Paperinik12/events{/privacy}","received_events_url":"https://api.github.com/users/Paperinik12/received_events","type":"User","site_admin":false},"labels":[{"id":141287459,"url":"https://api.github.com/repos/tabalinas/jsgrid/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-30T12:51:10Z","updated_at":"2017-07-02T14:33:09Z","closed_at":"2017-07-02T14:33:09Z","body":"<!---\r\n\r\nPlease attempt to fit your report into 1 of 3 categories and include the following information:\r\n\r\n1. Bug Reports:\r\n    A) Expected Behavior\r\n    B) Actual Behavior\r\n    C) Steps to Reproduce\r\n    \r\n2. Feature Request:\r\n    A) Desired Feature\r\n    B) Justification for Addition\r\n    \r\n3. Help Request/Question:\r\n    A) Clearly state your problem\r\n    B) Include your code\r\n    C) If Applicable, attach a JSFiddle or CodePen\r\n    \r\n-->\r\n\r\n<!--- Begin Report Below This Line -->\r\nHi,\r\nany chance that an XML file could be used directly to feed the grid ?\r\nI thought something like this:\r\n\r\n```js\r\ncontroller: {\r\n                    loadData: function (filter) {\r\n                        var d = $.Deferred();\r\n                        $.ajax({\r\n                            type: \"GET\",\r\n                            url: \"abc.xml\",\r\n                            dataType: \"xml\",\r\n                            data: filter,\r\n                            success: function(response) {\r\n                                alert('response');\r\n                                },\r\n                            failure : function(msg) {\r\n                                alert('fail');\r\n                                }\r\n                            })\r\n                            .done(function(response) {\r\n                            d.resolve(response.value);\r\n                        });\r\n                      return d.promise();},\r\n                   fields: [\r\n                        { name: \"dateCreation\", type: \"text\", width: 150 },\r\n                        { name: \"title\", type: \"text\", width: 150 },\r\n                        { name: \"shortBody\", type: \"text\", width: 150},\r\n                        { name: \"longBody\", type: \"text\", width: 200 },\r\n                        { type: \"control\", editButton: true }\r\n                        ]\r\n```\r\n\r\n for an xml file like this:\r\n\r\n```xml\r\n    <ccc>\r\n        <dateCreation>01/12/2016</dateCreation>\r\n        <title>my title</title>\r\n        <shortBody>less informations</shortBody>\r\n        <longBody>more informations</longBody>\r\n    </ccc>\r\n```"},"comment":{"url":"https://api.github.com/repos/tabalinas/jsgrid/issues/comments/312495341","html_url":"https://github.com/tabalinas/jsgrid/issues/822#issuecomment-312495341","issue_url":"https://api.github.com/repos/tabalinas/jsgrid/issues/822","id":312495341,"user":{"login":"tabalinas","id":3506013,"avatar_url":"https://avatars3.githubusercontent.com/u/3506013?v=3","gravatar_id":"","url":"https://api.github.com/users/tabalinas","html_url":"https://github.com/tabalinas","followers_url":"https://api.github.com/users/tabalinas/followers","following_url":"https://api.github.com/users/tabalinas/following{/other_user}","gists_url":"https://api.github.com/users/tabalinas/gists{/gist_id}","starred_url":"https://api.github.com/users/tabalinas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tabalinas/subscriptions","organizations_url":"https://api.github.com/users/tabalinas/orgs","repos_url":"https://api.github.com/users/tabalinas/repos","events_url":"https://api.github.com/users/tabalinas/events{/privacy}","received_events_url":"https://api.github.com/users/tabalinas/received_events","type":"User","site_admin":false},"created_at":"2017-07-02T14:33:09Z","updated_at":"2017-07-02T14:33:09Z","body":"You can achieve this, but you will have to parse xml and turn it into json in `done` function. https://stackoverflow.com/questions/10223865/ajax-jquery-xml-parse"}}
{"actor":{"display_login":"tabalinas"}}