{"action":"opened","issue":{"url":"https://api.github.com/repos/danmunn/redmine_dmsf/issues/382","labels_url":"https://api.github.com/repos/danmunn/redmine_dmsf/issues/382/labels{/name}","comments_url":"https://api.github.com/repos/danmunn/redmine_dmsf/issues/382/comments","events_url":"https://api.github.com/repos/danmunn/redmine_dmsf/issues/382/events","html_url":"https://github.com/danmunn/redmine_dmsf/issues/382","id":69759684,"number":382,"title":"REST API - list of document produces invalid XML","user":{"login":"xwinus","id":5843430,"avatar_url":"https://avatars.githubusercontent.com/u/5843430?v=3","gravatar_id":"","url":"https://api.github.com/users/xwinus","html_url":"https://github.com/xwinus","followers_url":"https://api.github.com/users/xwinus/followers","following_url":"https://api.github.com/users/xwinus/following{/other_user}","gists_url":"https://api.github.com/users/xwinus/gists{/gist_id}","starred_url":"https://api.github.com/users/xwinus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xwinus/subscriptions","organizations_url":"https://api.github.com/users/xwinus/orgs","repos_url":"https://api.github.com/users/xwinus/repos","events_url":"https://api.github.com/users/xwinus/events{/privacy}","received_events_url":"https://api.github.com/users/xwinus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-21T06:52:08Z","updated_at":"2015-04-21T06:52:08Z","closed_at":null,"body":"Hello,\r\nI've noticed that the XML code produced by API request for obtaining the list of documents (the code under the _response_ heading here: https://github.com/danmunn/redmine_dmsf/wiki/REST-API#list-of-documents-in-a-given-folder-or-the-root-folder) is not valid. According to the XML spec (http://www.w3.org/TR/2008/REC-xml-20081126/), _There is exactly one element, called the root, or document element, no part of which appears in the content of any other element._ However, in the DMSF REST API this is violated by having two \"root elements\", `<dmsf_folders />` and `<dmsf_links />`. You can easily check the invalidity by copy&paste the example XML output to any XML validator, for example http://www.xmlvalidation.com.\r\n\r\nThank you, Vaclav Svejcar (Tranetic, s.r.o.)"}}