This is no longer maintained. Please check my fork.
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 xml.py to use INPUT_METHOD_FILE (@
instead od -
) so I could detect file path. Currently the wrapper is quite stupid but it can be changed when I come across something that doesn’t work.
Tested with SublimeLinter3, libxml version 20902 and Python 3.4.3
Save xmllintschema to ~/bin directory (or another directory on path) and set executable bit (chmod +x xmllintschema
).
- Click Preferences → Browse Packages → SublimeLinter-xmllint, open linter.py