{"action":"created","issue":{"url":"https://api.github.com/repos/Tickaroo/tikxml/issues/46","repository_url":"https://api.github.com/repos/Tickaroo/tikxml","labels_url":"https://api.github.com/repos/Tickaroo/tikxml/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/Tickaroo/tikxml/issues/46/comments","events_url":"https://api.github.com/repos/Tickaroo/tikxml/issues/46/events","html_url":"https://github.com/Tickaroo/tikxml/issues/46","id":183928212,"node_id":"MDU6SXNzdWUxODM5MjgyMTI=","number":46,"title":"Support for reading List<String> and other primitves","user":{"login":"sockeqwe","id":583598,"node_id":"MDQ6VXNlcjU4MzU5OA==","avatar_url":"https://avatars2.githubusercontent.com/u/583598?v=4","gravatar_id":"","url":"https://api.github.com/users/sockeqwe","html_url":"https://github.com/sockeqwe","followers_url":"https://api.github.com/users/sockeqwe/followers","following_url":"https://api.github.com/users/sockeqwe/following{/other_user}","gists_url":"https://api.github.com/users/sockeqwe/gists{/gist_id}","starred_url":"https://api.github.com/users/sockeqwe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sockeqwe/subscriptions","organizations_url":"https://api.github.com/users/sockeqwe/orgs","repos_url":"https://api.github.com/users/sockeqwe/repos","events_url":"https://api.github.com/users/sockeqwe/events{/privacy}","received_events_url":"https://api.github.com/users/sockeqwe/received_events","type":"User","site_admin":false},"labels":[{"id":291941700,"node_id":"MDU6TGFiZWwyOTE5NDE3MDA=","url":"https://api.github.com/repos/Tickaroo/tikxml/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Tickaroo/tikxml/milestones/1","html_url":"https://github.com/Tickaroo/tikxml/milestone/1","labels_url":"https://api.github.com/repos/Tickaroo/tikxml/milestones/1/labels","id":1457258,"node_id":"MDk6TWlsZXN0b25lMTQ1NzI1OA==","number":1,"title":"1.0","description":"","creator":{"login":"sockeqwe","id":583598,"node_id":"MDQ6VXNlcjU4MzU5OA==","avatar_url":"https://avatars2.githubusercontent.com/u/583598?v=4","gravatar_id":"","url":"https://api.github.com/users/sockeqwe","html_url":"https://github.com/sockeqwe","followers_url":"https://api.github.com/users/sockeqwe/followers","following_url":"https://api.github.com/users/sockeqwe/following{/other_user}","gists_url":"https://api.github.com/users/sockeqwe/gists{/gist_id}","starred_url":"https://api.github.com/users/sockeqwe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sockeqwe/subscriptions","organizations_url":"https://api.github.com/users/sockeqwe/orgs","repos_url":"https://api.github.com/users/sockeqwe/repos","events_url":"https://api.github.com/users/sockeqwe/events{/privacy}","received_events_url":"https://api.github.com/users/sockeqwe/received_events","type":"User","site_admin":false},"open_issues":18,"closed_issues":15,"state":"open","created_at":"2015-12-12T14:00:01Z","updated_at":"2018-08-17T11:15:44Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-10-19T10:49:54Z","updated_at":"2018-09-19T13:38:55Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"As reported in #44 parsing an xml like \n\n``` xml\n<week>\n  <day>Monday</day>\n  <day>Tuesday</day>\n  <day>Wednesday</day>\n  <day>Thursday</day>\n  <day>Friday</day>\n  <day>Saturday</day>\n  <day>Sunday</day>\n</week>\n```\n\nis not possible with `@PropertyElement` nor with `@Element List<String>` directly.\n\nThe current workaround is to use `@TextContent` but this requires an extra wrapper:\n\n``` java\n@Xml\npublic class Week {\n  @Element\n  List<Day> days;\n}\n```\n\n``` java\n@Xml\npublic class Day {\n  @TextContent String name;\n}\n```\n"},"comment":{"url":"https://api.github.com/repos/Tickaroo/tikxml/issues/comments/422807151","html_url":"https://github.com/Tickaroo/tikxml/issues/46#issuecomment-422807151","issue_url":"https://api.github.com/repos/Tickaroo/tikxml/issues/46","id":422807151,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMjgwNzE1MQ==","user":{"login":"sockeqwe","id":583598,"node_id":"MDQ6VXNlcjU4MzU5OA==","avatar_url":"https://avatars2.githubusercontent.com/u/583598?v=4","gravatar_id":"","url":"https://api.github.com/users/sockeqwe","html_url":"https://github.com/sockeqwe","followers_url":"https://api.github.com/users/sockeqwe/followers","following_url":"https://api.github.com/users/sockeqwe/following{/other_user}","gists_url":"https://api.github.com/users/sockeqwe/gists{/gist_id}","starred_url":"https://api.github.com/users/sockeqwe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sockeqwe/subscriptions","organizations_url":"https://api.github.com/users/sockeqwe/orgs","repos_url":"https://api.github.com/users/sockeqwe/repos","events_url":"https://api.github.com/users/sockeqwe/events{/privacy}","received_events_url":"https://api.github.com/users/sockeqwe/received_events","type":"User","site_admin":false},"created_at":"2018-09-19T13:38:55Z","updated_at":"2018-09-19T13:38:55Z","author_association":"CONTRIBUTOR","body":"You can use `@Element` on a List like `List<SomeClass>` but *not* on a list of primitives like `List<String>`, `List<Int>` and List<Double>`.\r\n\r\nFor `List<String>` a workaround is needed right now:\r\n\r\n```java\r\n@Xml\r\npublic class SomeData {\r\n  @Element\r\n  List<String> someStrings;\r\n}\r\n\r\n@Xml\r\npublic class StringWorkaround {\r\n  @TextContent String stringValue;\r\n}\r\n```\r\n\r\nthen you can parse it as a `List<StringWorkaround>`"}}
{"actor":{"display_login":"sockeqwe"}}