{"action":"created","issue":{"url":"https://api.github.com/repos/databricks/spark-xml/issues/218","repository_url":"https://api.github.com/repos/databricks/spark-xml","labels_url":"https://api.github.com/repos/databricks/spark-xml/issues/218/labels{/name}","comments_url":"https://api.github.com/repos/databricks/spark-xml/issues/218/comments","events_url":"https://api.github.com/repos/databricks/spark-xml/issues/218/events","html_url":"https://github.com/databricks/spark-xml/issues/218","id":195796739,"number":218,"title":"How to write Value in an element that has no child elements but attributes and Value.. valueTag","user":{"login":"naveenreddy2811","id":24327928,"avatar_url":"https://avatars.githubusercontent.com/u/24327928?v=3","gravatar_id":"","url":"https://api.github.com/users/naveenreddy2811","html_url":"https://github.com/naveenreddy2811","followers_url":"https://api.github.com/users/naveenreddy2811/followers","following_url":"https://api.github.com/users/naveenreddy2811/following{/other_user}","gists_url":"https://api.github.com/users/naveenreddy2811/gists{/gist_id}","starred_url":"https://api.github.com/users/naveenreddy2811/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naveenreddy2811/subscriptions","organizations_url":"https://api.github.com/users/naveenreddy2811/orgs","repos_url":"https://api.github.com/users/naveenreddy2811/repos","events_url":"https://api.github.com/users/naveenreddy2811/events{/privacy}","received_events_url":"https://api.github.com/users/naveenreddy2811/received_events","type":"User","site_admin":false},"labels":[{"id":291799777,"url":"https://api.github.com/repos/databricks/spark-xml/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-15T12:45:25Z","updated_at":"2016-12-16T09:07:06Z","closed_at":"2016-12-16T09:03:13Z","body":"When i am trying to write DataFrame using XML, new attribute is being created for element that has no child elements but attributes and Value. In below example.\r\n\r\nI am getting below output\r\n`<Values VALUE=\"0.56\" date=\"2015-11-25\" time=\"16:15:00\"></Values>`\r\n\r\nWhere as i am expecting as below.\r\n\r\n`<Values date=\"2015-11-25\" time=\"16:15:00\">0.56</Values>`\r\n\r\nwhich option need to be used for this? \r\ndoes using \"valueTag\" option works, if so let me what is the correct way to use it?\r\n"},"comment":{"url":"https://api.github.com/repos/databricks/spark-xml/issues/comments/267549040","html_url":"https://github.com/databricks/spark-xml/issues/218#issuecomment-267549040","issue_url":"https://api.github.com/repos/databricks/spark-xml/issues/218","id":267549040,"user":{"login":"HyukjinKwon","id":6477701,"avatar_url":"https://avatars.githubusercontent.com/u/6477701?v=3","gravatar_id":"","url":"https://api.github.com/users/HyukjinKwon","html_url":"https://github.com/HyukjinKwon","followers_url":"https://api.github.com/users/HyukjinKwon/followers","following_url":"https://api.github.com/users/HyukjinKwon/following{/other_user}","gists_url":"https://api.github.com/users/HyukjinKwon/gists{/gist_id}","starred_url":"https://api.github.com/users/HyukjinKwon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HyukjinKwon/subscriptions","organizations_url":"https://api.github.com/users/HyukjinKwon/orgs","repos_url":"https://api.github.com/users/HyukjinKwon/repos","events_url":"https://api.github.com/users/HyukjinKwon/events{/privacy}","received_events_url":"https://api.github.com/users/HyukjinKwon/received_events","type":"User","site_admin":false},"created_at":"2016-12-16T09:07:06Z","updated_at":"2016-12-16T09:07:06Z","body":"@naveenreddy2811 I will try to make a PR to prevent the conflicts. Thank you for reporting this."}}
{"actor":{"display_login":"HyukjinKwon"}}