{"action":"opened","issue":{"url":"https://api.github.com/repos/PlayScriptRedux/playscript/issues/63","labels_url":"https://api.github.com/repos/PlayScriptRedux/playscript/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/PlayScriptRedux/playscript/issues/63/comments","events_url":"https://api.github.com/repos/PlayScriptRedux/playscript/issues/63/events","html_url":"https://github.com/PlayScriptRedux/playscript/issues/63","id":101188523,"number":63,"title":"XML - Implement  xml[\"@id\"] style attribute accessor","user":{"login":"sushihangover","id":1294194,"avatar_url":"https://avatars.githubusercontent.com/u/1294194?v=3","gravatar_id":"","url":"https://api.github.com/users/sushihangover","html_url":"https://github.com/sushihangover","followers_url":"https://api.github.com/users/sushihangover/followers","following_url":"https://api.github.com/users/sushihangover/following{/other_user}","gists_url":"https://api.github.com/users/sushihangover/gists{/gist_id}","starred_url":"https://api.github.com/users/sushihangover/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sushihangover/subscriptions","organizations_url":"https://api.github.com/users/sushihangover/orgs","repos_url":"https://api.github.com/users/sushihangover/repos","events_url":"https://api.github.com/users/sushihangover/events{/privacy}","received_events_url":"https://api.github.com/users/sushihangover/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-15T16:38:02Z","updated_at":"2015-08-15T16:38:02Z","closed_at":null,"body":"#### Currently these access methods are supported:\r\n* xml.@id\r\n* xml@[\"id\"]\r\n* xml.attribute(\"id\")\r\n\r\nThis style is not currently supported, but is allowed  in AS3:\r\n* xml[\"@id\"]\r\n\r\n\r\n### New Test: as/test-as-XML-Attr-Access-3.as\r\n\r\n```\r\n// Compiler options: -psstrict-\r\npackage {\r\n    public class Foo {\r\n        public static function Main():int {\r\n                var xml:XML=<example id='123' color='blue'/>;\r\n\r\n                var idAttrArrayIndexer:String = xml[\"@id\"];\r\n                trace(idAttrArrayIndexer);\r\n                if (idAttrArrayIndexer != \"123\") return 1\r\n\r\n                return 0;\r\n        }\r\n    }\r\n}\r\n```"}}