{"action":"created","issue":{"url":"https://api.github.com/repos/arskom/spyne/issues/411","labels_url":"https://api.github.com/repos/arskom/spyne/issues/411/labels{/name}","comments_url":"https://api.github.com/repos/arskom/spyne/issues/411/comments","events_url":"https://api.github.com/repos/arskom/spyne/issues/411/events","html_url":"https://github.com/arskom/spyne/issues/411","id":53236045,"number":411,"title":"follow on to #385 - parsing xsi_type when namespace prefix not present","user":{"login":"jrocnuck","id":4183028,"avatar_url":"https://avatars.githubusercontent.com/u/4183028?v=3","gravatar_id":"","url":"https://api.github.com/users/jrocnuck","html_url":"https://github.com/jrocnuck","followers_url":"https://api.github.com/users/jrocnuck/followers","following_url":"https://api.github.com/users/jrocnuck/following{/other_user}","gists_url":"https://api.github.com/users/jrocnuck/gists{/gist_id}","starred_url":"https://api.github.com/users/jrocnuck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrocnuck/subscriptions","organizations_url":"https://api.github.com/users/jrocnuck/orgs","repos_url":"https://api.github.com/users/jrocnuck/repos","events_url":"https://api.github.com/users/jrocnuck/events{/privacy}","received_events_url":"https://api.github.com/users/jrocnuck/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/arskom/spyne/labels/Defect","name":"Defect","color":"ff0000"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-01-02T03:30:44Z","updated_at":"2015-01-04T01:29:31Z","closed_at":"2015-01-03T13:12:45Z","body":"We need to handle the case when the namespace prefix is not present when parsing xsi types.\r\n\r\nin this file:\r\nhttps://github.com/arskom/spyne/blob/7243e9632af2348ce97cc3be2ffdeaeec9094779/spyne/protocol/xml.py#L389\r\nthe lines:\r\n\r\n     prefix, objtype = xsi_type.split(':', 1)\r\n     classkey = \"{%s}%s\" % (element.nsmap[prefix], objtype)\r\n\r\nneed to change to something like this:\r\n\r\n     if \":\" in xsi_type:\r\n          prefix, objtype = xsi_type.split(':', 1)\r\n          classkey = \"{%s}%s\" % (element.nsmap[prefix], objtype)\r\n     else:\r\n         classkey = xsi_type\r\n"},"comment":{"url":"https://api.github.com/repos/arskom/spyne/issues/comments/68616928","html_url":"https://github.com/arskom/spyne/issues/411#issuecomment-68616928","issue_url":"https://api.github.com/repos/arskom/spyne/issues/411","id":68616928,"user":{"login":"jrocnuck","id":4183028,"avatar_url":"https://avatars.githubusercontent.com/u/4183028?v=3","gravatar_id":"","url":"https://api.github.com/users/jrocnuck","html_url":"https://github.com/jrocnuck","followers_url":"https://api.github.com/users/jrocnuck/followers","following_url":"https://api.github.com/users/jrocnuck/following{/other_user}","gists_url":"https://api.github.com/users/jrocnuck/gists{/gist_id}","starred_url":"https://api.github.com/users/jrocnuck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrocnuck/subscriptions","organizations_url":"https://api.github.com/users/jrocnuck/orgs","repos_url":"https://api.github.com/users/jrocnuck/repos","events_url":"https://api.github.com/users/jrocnuck/events{/privacy}","received_events_url":"https://api.github.com/users/jrocnuck/received_events","type":"User","site_admin":false},"created_at":"2015-01-04T01:29:31Z","updated_at":"2015-01-04T01:29:31Z","body":"Ok, I didn't realize nsmap stored a value for None key, so I've learned something new on that one and also then that makes your solution 100% valid as far as I can tell.  Thanks for fixing quickly and for clearing me up on the etree piece."}}