{"action":"created","issue":{"url":"https://api.github.com/repos/michaelkourlas/node-js2xmlparser/issues/61","repository_url":"https://api.github.com/repos/michaelkourlas/node-js2xmlparser","labels_url":"https://api.github.com/repos/michaelkourlas/node-js2xmlparser/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/michaelkourlas/node-js2xmlparser/issues/61/comments","events_url":"https://api.github.com/repos/michaelkourlas/node-js2xmlparser/issues/61/events","html_url":"https://github.com/michaelkourlas/node-js2xmlparser/issues/61","id":264961704,"number":61,"title":"Characters not allowed in XML names","user":{"login":"YuantongL","id":10422762,"avatar_url":"https://avatars1.githubusercontent.com/u/10422762?v=4","gravatar_id":"","url":"https://api.github.com/users/YuantongL","html_url":"https://github.com/YuantongL","followers_url":"https://api.github.com/users/YuantongL/followers","following_url":"https://api.github.com/users/YuantongL/following{/other_user}","gists_url":"https://api.github.com/users/YuantongL/gists{/gist_id}","starred_url":"https://api.github.com/users/YuantongL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YuantongL/subscriptions","organizations_url":"https://api.github.com/users/YuantongL/orgs","repos_url":"https://api.github.com/users/YuantongL/repos","events_url":"https://api.github.com/users/YuantongL/events{/privacy}","received_events_url":"https://api.github.com/users/YuantongL/received_events","type":"User","site_admin":false},"labels":[{"id":11390297,"url":"https://api.github.com/repos/michaelkourlas/node-js2xmlparser/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"michaelkourlas","id":1672388,"avatar_url":"https://avatars1.githubusercontent.com/u/1672388?v=4","gravatar_id":"","url":"https://api.github.com/users/michaelkourlas","html_url":"https://github.com/michaelkourlas","followers_url":"https://api.github.com/users/michaelkourlas/followers","following_url":"https://api.github.com/users/michaelkourlas/following{/other_user}","gists_url":"https://api.github.com/users/michaelkourlas/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelkourlas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelkourlas/subscriptions","organizations_url":"https://api.github.com/users/michaelkourlas/orgs","repos_url":"https://api.github.com/users/michaelkourlas/repos","events_url":"https://api.github.com/users/michaelkourlas/events{/privacy}","received_events_url":"https://api.github.com/users/michaelkourlas/received_events","type":"User","site_admin":false},"assignees":[{"login":"michaelkourlas","id":1672388,"avatar_url":"https://avatars1.githubusercontent.com/u/1672388?v=4","gravatar_id":"","url":"https://api.github.com/users/michaelkourlas","html_url":"https://github.com/michaelkourlas","followers_url":"https://api.github.com/users/michaelkourlas/followers","following_url":"https://api.github.com/users/michaelkourlas/following{/other_user}","gists_url":"https://api.github.com/users/michaelkourlas/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelkourlas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelkourlas/subscriptions","organizations_url":"https://api.github.com/users/michaelkourlas/orgs","repos_url":"https://api.github.com/users/michaelkourlas/repos","events_url":"https://api.github.com/users/michaelkourlas/events{/privacy}","received_events_url":"https://api.github.com/users/michaelkourlas/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/michaelkourlas/node-js2xmlparser/milestones/2","html_url":"https://github.com/michaelkourlas/node-js2xmlparser/milestone/2","labels_url":"https://api.github.com/repos/michaelkourlas/node-js2xmlparser/milestones/2/labels","id":2427942,"number":2,"title":"v3.1.0","description":"","creator":{"login":"michaelkourlas","id":1672388,"avatar_url":"https://avatars1.githubusercontent.com/u/1672388?v=4","gravatar_id":"","url":"https://api.github.com/users/michaelkourlas","html_url":"https://github.com/michaelkourlas","followers_url":"https://api.github.com/users/michaelkourlas/followers","following_url":"https://api.github.com/users/michaelkourlas/following{/other_user}","gists_url":"https://api.github.com/users/michaelkourlas/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelkourlas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelkourlas/subscriptions","organizations_url":"https://api.github.com/users/michaelkourlas/orgs","repos_url":"https://api.github.com/users/michaelkourlas/repos","events_url":"https://api.github.com/users/michaelkourlas/events{/privacy}","received_events_url":"https://api.github.com/users/michaelkourlas/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":0,"state":"open","created_at":"2017-04-02T12:13:59Z","updated_at":"2018-01-03T15:04:33Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2017-10-12T14:24:26Z","updated_at":"2018-03-13T06:03:17Z","closed_at":null,"author_association":"NONE","body":"I've been trying to convert this JSON to XML\r\n\r\nvar obj = {\r\n\t\"note\": {\r\n\t\t\"xmlns:xsi\": \"http://www.w3.org/2001/XMLSchema-instance\",\r\n\t\t\"xmlns:xs\": \"http://www.w3.org/2001/XMLSchema\",\r\n\t\t\"xsi:type\": \"xs:string\",\r\n\t\t\"$t\": \"$0.0/sqft\"\r\n\t}\r\n};\r\n\r\nvar js2xmlparser = require(\"js2xmlparser\");\r\nconsole.log(\"\\nthis is the result\");\r\nconsole.log(js2xmlparser.parse(\"result\", obj));\r\n\r\nIt says Error: name should not contain characters not allowed in XML names at XmlElement.set [as name]\r\n\r\nI find out it's complaining about the \"$\" in the name \"$t\". Is there a way to get around this?\r\n"},"comment":{"url":"https://api.github.com/repos/michaelkourlas/node-js2xmlparser/issues/comments/372556454","html_url":"https://github.com/michaelkourlas/node-js2xmlparser/issues/61#issuecomment-372556454","issue_url":"https://api.github.com/repos/michaelkourlas/node-js2xmlparser/issues/61","id":372556454,"user":{"login":"xjtumalin","id":16299703,"avatar_url":"https://avatars3.githubusercontent.com/u/16299703?v=4","gravatar_id":"","url":"https://api.github.com/users/xjtumalin","html_url":"https://github.com/xjtumalin","followers_url":"https://api.github.com/users/xjtumalin/followers","following_url":"https://api.github.com/users/xjtumalin/following{/other_user}","gists_url":"https://api.github.com/users/xjtumalin/gists{/gist_id}","starred_url":"https://api.github.com/users/xjtumalin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xjtumalin/subscriptions","organizations_url":"https://api.github.com/users/xjtumalin/orgs","repos_url":"https://api.github.com/users/xjtumalin/repos","events_url":"https://api.github.com/users/xjtumalin/events{/privacy}","received_events_url":"https://api.github.com/users/xjtumalin/received_events","type":"User","site_admin":false},"created_at":"2018-03-13T06:03:17Z","updated_at":"2018-03-13T06:03:17Z","author_association":"NONE","body":"Please try this:\r\nconsole.log(js2xmlparser.parse(\"result\", JSON.parse(JSON.stringify(obj))));\r\n\r\nIt works for me."}}
{"actor":{"display_login":"xjtumalin"}}