{"action":"closed","issue":{"url":"https://api.github.com/repos/renggli/dart-xml/issues/18","repository_url":"https://api.github.com/repos/renggli/dart-xml","labels_url":"https://api.github.com/repos/renggli/dart-xml/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/renggli/dart-xml/issues/18/comments","events_url":"https://api.github.com/repos/renggli/dart-xml/issues/18/events","html_url":"https://github.com/renggli/dart-xml/issues/18","id":166647290,"number":18,"title":"Raw string","user":{"login":"kless","id":16563,"avatar_url":"https://avatars.githubusercontent.com/u/16563?v=3","gravatar_id":"","url":"https://api.github.com/users/kless","html_url":"https://github.com/kless","followers_url":"https://api.github.com/users/kless/followers","following_url":"https://api.github.com/users/kless/following{/other_user}","gists_url":"https://api.github.com/users/kless/gists{/gist_id}","starred_url":"https://api.github.com/users/kless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kless/subscriptions","organizations_url":"https://api.github.com/users/kless/orgs","repos_url":"https://api.github.com/users/kless/repos","events_url":"https://api.github.com/users/kless/events{/privacy}","received_events_url":"https://api.github.com/users/kless/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-20T18:17:21Z","updated_at":"2016-07-22T12:47:02Z","closed_at":"2016-07-22T12:47:02Z","body":"The XML package is parsing the escape codes (since it’s not a dart escape code in anycase), but it could have a method to return the raw string. So, in the next example code, should return \"&#x240D;\" instead of an Unicode character.\r\n\r\n```\r\nimport 'package:xml/xml.dart' as xml;\r\n\r\nconst data = '''\r\n<?xml version=\"1.0\"?>\r\n<meta>\r\n\r\n<Reference>\r\n    <value>&#x240D;</value>\r\n</Reference>\r\n\r\n</meta>\r\n''';\r\n\r\nmain() async {\r\n  var document = xml.parse(data);\r\n\r\n  var res = document.findAllElements('Reference')\r\n    .expand((node) => node.findElements('value'))\r\n    .map((node) => node.text); // It's converted to unicode\r\n\r\n  print(res);\r\n}\r\n```\r\n"}}
{"actor":{"display_login":"kless"}}