7:50 PM xmllint : a command line xml tool to view and find errors in XML file | |||
DESCRIPTION --path "PATH(S)" --valid --dtdvalid URL Example:
The above command will open the xml file in xml format if it is not having any formatting error. So, if the file is having some error it will not open and throw error.
The above command will validate the xml file against the DTD file mentioned in the command. Now suppose you have opned an XML file in VI editor so it will be unreadable. To format the content in XML inside VI editor only, we can use below command:
So the above command will make the content readabe by showing it in XML format. | |||
|
Related blogs
You may also like to see:
[2015-07-18] | [Open System-Linux] |
Creating and Managing Logical Volume Manager in Linux |
[2014-12-16] | [Open System-Linux] |
CUT command in Linux : cut the file vertically |
[2014-12-03] | [Open System-Linux] |
GREP command in Linux to search for a pattern |
[2015-06-03] | [Open System-Linux] |
STAT command : check file or filesystem statistics |
[2014-05-22] | [Open System-Linux] |
Archiving and compression of files in Linux |
Total comments: 0 | |