{"action":"opened","issue":{"url":"https://api.github.com/repos/formix/damn-simple-xml/issues/43","labels_url":"https://api.github.com/repos/formix/damn-simple-xml/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/formix/damn-simple-xml/issues/43/comments","events_url":"https://api.github.com/repos/formix/damn-simple-xml/issues/43/events","html_url":"https://github.com/formix/damn-simple-xml/issues/43","id":69161099,"number":43,"title":"Revise and simplify README.md content","user":{"login":"formix","id":8600014,"avatar_url":"https://avatars.githubusercontent.com/u/8600014?v=3","gravatar_id":"","url":"https://api.github.com/users/formix","html_url":"https://github.com/formix","followers_url":"https://api.github.com/users/formix/followers","following_url":"https://api.github.com/users/formix/following{/other_user}","gists_url":"https://api.github.com/users/formix/gists{/gist_id}","starred_url":"https://api.github.com/users/formix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/formix/subscriptions","organizations_url":"https://api.github.com/users/formix/orgs","repos_url":"https://api.github.com/users/formix/repos","events_url":"https://api.github.com/users/formix/events{/privacy}","received_events_url":"https://api.github.com/users/formix/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/formix/damn-simple-xml/labels/documentation","name":"documentation","color":"006b75"},{"url":"https://api.github.com/repos/formix/damn-simple-xml/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-17T15:29:08Z","updated_at":"2015-04-17T15:29:08Z","closed_at":null,"body":"The currently published README.md in NPM is not completely right about the deserialization and undeclared text per se:\r\n\r\n```xml\r\n<employee>\r\n  This employee is terrible!\r\n  <firstName>John</firstName>\r\n  <lastName>Doe</lastName>\r\n  <emails>\r\n    <email type=\"work\">jdoe@work.com</email>\r\n    <email type=\"personal\">john.doe@nobody.com</email>\r\n  <emails>\r\n</employee>\r\n```\r\n\r\nshall deserialize to:\r\n\r\n```javascript\r\n{\r\n  name: \"employee\",\r\n  data: {\r\n    _text: \"This employee is terrible!\",\r\n    firstName: \"John\",\r\n    lastName: \"Doe\",\r\n    emails: [\r\n      {\r\n        type: \"work\",\r\n        _text: \"jdoe@work.com\"\r\n      },\r\n      {\r\n        type: \"personal\",\r\n        _text: \"john.doe@nobody.com\"\r\n      }\r\n    ]\r\n  }\r\n}\r\n```"}}