R.A. Epigonos et al.

[xml] xmlの妥当性チェックツールxmllintをインストール

xmlファイルの妥当性をチェックするツールとしてxmllintがある。ここではdebian squeeseにインストールするまで。他のパーサが出力するエラーの内容がよくわからない場合には、xmllintを使ってみる。

今回はバイナリファイル名がわかっているのでdpkg --searchで検索。libxml2-utilsパッケージに含まれていることが判る。

# dpkg --search xmllint
libxml2-utils: /usr/share/man/man1/xmllint.1.gz
vim-runtime: /usr/share/vim/vim72/compiler/xmllint.vim
libxml2-utils: /usr/bin/xmllint
bash-completion: /etc/bash_completion.d/xmllint

目的のパッケージ名が判ったらインストール。

# aptitude install libxml2-utils
The following NEW packages will be installed:
  libxml2-utils
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 90.0 kB of archives. After unpacking 197 kB will be used.
Get:1 http://ftp.jp.debian.org/debian/ squeeze/main libxml2-utils i386 2.7.8.dfsg-2 [90.0 kB]
Fetched 90.0 kB in 5s (17.4 kB/s)
Selecting previously deselected package libxml2-utils.
(Reading database ... 33391 files and directories currently installed.)
Unpacking libxml2-utils (from .../libxml2-utils_2.7.8.dfsg-2_i386.deb) ...
Processing triggers for man-db ...
Setting up libxml2-utils (2.7.8.dfsg-2) ...

リファレンス

  1. Debian -- squeeze の libxml2-utils パッケージに関する詳細
  2. Debian -- パッケージ内容検索結果 -- xmllint
  3. xmllint - Google 検索

ソーシャルブックマーク

  1. はてなブックマーク
  2. Google Bookmarks
  3. del.icio.us

ChangeLog

  1. Posted: 2009-12-08T00:36:47+09:00
  2. Modified: 2009-12-08T00:36:47+09:00
  3. Generated: 2023-08-27T23:09:13+09:00