{"action":"opened","issue":{"url":"https://api.github.com/repos/adityam/filter/issues/22","labels_url":"https://api.github.com/repos/adityam/filter/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/adityam/filter/issues/22/comments","events_url":"https://api.github.com/repos/adityam/filter/issues/22/events","html_url":"https://github.com/adityam/filter/issues/22","id":98826659,"number":22,"title":"I can't read xml files","user":{"login":"somenxavier","id":89915,"avatar_url":"https://avatars.githubusercontent.com/u/89915?v=3","gravatar_id":"","url":"https://api.github.com/users/somenxavier","html_url":"https://github.com/somenxavier","followers_url":"https://api.github.com/users/somenxavier/followers","following_url":"https://api.github.com/users/somenxavier/following{/other_user}","gists_url":"https://api.github.com/users/somenxavier/gists{/gist_id}","starred_url":"https://api.github.com/users/somenxavier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/somenxavier/subscriptions","organizations_url":"https://api.github.com/users/somenxavier/orgs","repos_url":"https://api.github.com/users/somenxavier/repos","events_url":"https://api.github.com/users/somenxavier/events{/privacy}","received_events_url":"https://api.github.com/users/somenxavier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-03T19:56:14Z","updated_at":"2015-08-03T19:56:14Z","closed_at":null,"body":"With this filter:\r\n```\r\n\\usemodule[filter]\r\n\r\n\\defineexternalfilter\r\n    [python]\r\n    [filtercommand={python3 \\externalfilterinputfile\\space > \\externalfilteroutputfile}, location=text]\r\n```\r\n\r\nand this code:\r\n```\r\nimport os.path\r\n\r\nwith open('./b.txt', 'r') as f:\r\n\tr = f.read()\r\n\tprint(len(r))\r\n```\r\n\r\nall is fine except when b.txt is an XML file. I get this\r\n```\r\nreferences      > start problematic references\r\n\r\nreferences      > unknown >    1: [][]\r\n\r\nreferences      > stop problematic references\r\n```\r\n\r\nWhat happens?"}}