{"action":"created","issue":{"url":"https://api.github.com/repos/maik/xml-simple/issues/20","labels_url":"https://api.github.com/repos/maik/xml-simple/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/maik/xml-simple/issues/20/comments","events_url":"https://api.github.com/repos/maik/xml-simple/issues/20/events","html_url":"https://github.com/maik/xml-simple/issues/20","id":103882541,"number":20,"title":"xml_in not working properly","user":{"login":"fazelmk","id":7800983,"avatar_url":"https://avatars.githubusercontent.com/u/7800983?v=3","gravatar_id":"","url":"https://api.github.com/users/fazelmk","html_url":"https://github.com/fazelmk","followers_url":"https://api.github.com/users/fazelmk/followers","following_url":"https://api.github.com/users/fazelmk/following{/other_user}","gists_url":"https://api.github.com/users/fazelmk/gists{/gist_id}","starred_url":"https://api.github.com/users/fazelmk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fazelmk/subscriptions","organizations_url":"https://api.github.com/users/fazelmk/orgs","repos_url":"https://api.github.com/users/fazelmk/repos","events_url":"https://api.github.com/users/fazelmk/events{/privacy}","received_events_url":"https://api.github.com/users/fazelmk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-08-29T21:03:15Z","updated_at":"2015-08-31T15:32:54Z","closed_at":null,"body":"```\r\n hash = XmlSimple.xml_in('<test><name>LE</name><value class=\"string\">0.0</value></test>', {KeepRoot: true, ForceArray: false})\r\n=> {\"test\"=>{\"name\"=>\"LE\", \"value\"=>{\"class\"=>\"string\", \"content\"=>\"0.0\"}}}\r\n\r\nXmlSimple.xml_out(hash, KeepRoot: true)\r\n=> \"<test name=\\\"LE\\\">\\n  <value class=\\\"string\\\">0.0</value>\\n</test>\\n\"\r\n```"},"comment":{"url":"https://api.github.com/repos/maik/xml-simple/issues/comments/136407133","html_url":"https://github.com/maik/xml-simple/issues/20#issuecomment-136407133","issue_url":"https://api.github.com/repos/maik/xml-simple/issues/20","id":136407133,"user":{"login":"fazelmk","id":7800983,"avatar_url":"https://avatars.githubusercontent.com/u/7800983?v=3","gravatar_id":"","url":"https://api.github.com/users/fazelmk","html_url":"https://github.com/fazelmk","followers_url":"https://api.github.com/users/fazelmk/followers","following_url":"https://api.github.com/users/fazelmk/following{/other_user}","gists_url":"https://api.github.com/users/fazelmk/gists{/gist_id}","starred_url":"https://api.github.com/users/fazelmk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fazelmk/subscriptions","organizations_url":"https://api.github.com/users/fazelmk/orgs","repos_url":"https://api.github.com/users/fazelmk/repos","events_url":"https://api.github.com/users/fazelmk/events{/privacy}","received_events_url":"https://api.github.com/users/fazelmk/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T15:32:54Z","updated_at":"2015-08-31T15:32:54Z","body":"The same xml as the input, since I din't make any changes to the hash.\r\n\r\nThe xml_in  should treat child element as elements. But instead it put the child element an attribute of the parent element.\r\n\r\nIt's worth mentioning that elements with child elements or attributes are parsed as expected.\r\n\r\nexpected output of xml_out for the exemple would be\r\n```\r\n\"<test>\\n<name>test</name>\\n<value class=\\\"int\\\">1</value>\\n</test>\\n\"\r\n```"}}