{"action":"created","issue":{"url":"https://api.github.com/repos/SublimeLinter/SublimeLinter-xmllint/issues/4","labels_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter-xmllint/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter-xmllint/issues/4/comments","events_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter-xmllint/issues/4/events","html_url":"https://github.com/SublimeLinter/SublimeLinter-xmllint/issues/4","id":38896952,"number":4,"title":"XML linter with schema validation","user":{"login":"jtojnar","id":705123,"avatar_url":"https://avatars.githubusercontent.com/u/705123?v=3","gravatar_id":"","url":"https://api.github.com/users/jtojnar","html_url":"https://github.com/jtojnar","followers_url":"https://api.github.com/users/jtojnar/followers","following_url":"https://api.github.com/users/jtojnar/following{/other_user}","gists_url":"https://api.github.com/users/jtojnar/gists{/gist_id}","starred_url":"https://api.github.com/users/jtojnar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtojnar/subscriptions","organizations_url":"https://api.github.com/users/jtojnar/orgs","repos_url":"https://api.github.com/users/jtojnar/repos","events_url":"https://api.github.com/users/jtojnar/events{/privacy}","received_events_url":"https://api.github.com/users/jtojnar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-07-28T14:44:55Z","updated_at":"2015-03-31T07:37:08Z","closed_at":null,"body":"I wanted SublimeLinter to automatically validate XML against XSD, but this AFAIK isn’t possible so I made a wrapper for xmllint utility to find XSD file in source code and pass it as argument to xmllint. Because XSD paths can be relative I had to change linter to pass path instead of content so I could detect XSD file path.\r\n\r\nCurrently the wrapper is quite stupid but it can be changed when I come across something that doesn’t work.\r\n\r\nBased on SublimeLinter/SublimeLinter-xmllint@3e855400a5f47c8b4989cc06081a3781af443a79\r\nTested with xmllint: using libxml version 20901 and Python 2.7.6\r\n\r\nhttps://gist.github.com/jtojnar/5851893\r\n\r\nThis feature should be probably implemented into libxml but I am posting it here as it is faster solution than filing a patch."},"comment":{"url":"https://api.github.com/repos/SublimeLinter/SublimeLinter-xmllint/issues/comments/87979146","html_url":"https://github.com/SublimeLinter/SublimeLinter-xmllint/issues/4#issuecomment-87979146","issue_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter-xmllint/issues/4","id":87979146,"user":{"login":"dmaglio","id":446573,"avatar_url":"https://avatars.githubusercontent.com/u/446573?v=3","gravatar_id":"","url":"https://api.github.com/users/dmaglio","html_url":"https://github.com/dmaglio","followers_url":"https://api.github.com/users/dmaglio/followers","following_url":"https://api.github.com/users/dmaglio/following{/other_user}","gists_url":"https://api.github.com/users/dmaglio/gists{/gist_id}","starred_url":"https://api.github.com/users/dmaglio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmaglio/subscriptions","organizations_url":"https://api.github.com/users/dmaglio/orgs","repos_url":"https://api.github.com/users/dmaglio/repos","events_url":"https://api.github.com/users/dmaglio/events{/privacy}","received_events_url":"https://api.github.com/users/dmaglio/received_events","type":"User","site_admin":false},"created_at":"2015-03-31T07:37:08Z","updated_at":"2015-03-31T07:37:08Z","body":"```\r\nSublimeLinter: xmllint output:\r\n  File \"/usr/bin/xmllintschema\", line 25\r\n    print('-:' + str(schemaline) + ': Schema file does not exist', file=sys.stderr)\r\n                                                                       ^\r\nSyntaxError: invalid syntax \r\n```"}}