xmllint - The xmllint program parses XML files. It is useful for detecting errors XML code. See xmlsoft.org/xmllint.html for more informations about xmllint.
This package will lint your opened .xml
files in Atom through xmllint linter.
The changelog lists the changes for each release.
Before using this package, you must 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:
-
On Linux:
[sudo] apt-get install libxml2-utils
-
On Windows, the current binary distribution is managed by Igor Zlatkovic (here) and there were some known issues with version 2.9.3 (20903) x86_64. The validation messages did not contain the filename and would not work with this plugin. The instructions below use the 2.7.8 (20708) x86 binary.
-
Pick a location where to store the required files, e.g.
C:\tools\xmllint
. -
Browse to ftp://ftp.zlatkovic.com/libxml/ to get the needed files. If the versions are no longer available at root check the oldreleases folder.
-
Download the following files:
iconv-1.9.2.win32.zip
libxml2-2.7.8.win32.zip
libxslt-1.1.26.win32.zip
zlib-1.2.5.win32.zip
- Extract all the files into the location we created in the first step. Example of extracted structure:
C:\tools\xmllint\ - bin - include - lib - share
- Add the
bin
directory to your path, e.g.C:\tools\xmllint\bin
by calling
setx path %PATH%;C:\tools\xmllint\bin
- This is a CLI command that will attempt to add it to your path, if your path is really long it will fail and you will have to do it manually through windows. Use quotes if your path has spaces.
- Open a new command prompt and try the command
xmllint --version
to see if it worked. If it worked you will see the version be (20708).
-
$ apm install linter-xmllint