SublimeLinter / SublimeLinter-xmllint

SublimeLinter 3 plugin for XML, using xmllint.
MIT License
29 stars 6 forks source link

SublimeLinter-xmllint

Build Status

This linter plugin for SublimeLinter provides an interface to xmllint. It will be used with files that have the "XML" syntax.

Installation

SublimeLinter must be installed in order to use this plugin.

Please use Package Control to install the linter plugin.

Before using this plugin, ensure that xmllint is installed on your system. On recent versions of Mac OS X, xmllint comes pre-installed. To install xmllint on other platforms, do the following:

  1. On Linux:

     [sudo] apt-get install libxml2-utils
  2. On Windows, either follow the instructions here. There is another version on code.google.com, but that version is incompatible with this plugin. A much quicker, easier and robust solution is to use Chocolatey to install xsltproc which also installs xmllint (and all other required utilities):

     $ choco install xsltproc

Please make sure that the path to xmllint is available to SublimeLinter. The docs cover troubleshooting PATH configuration.

Settings

xmllint has many possible command line arguments ("args") which may be passed via the Linter settings.