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:
[2014-12-05] | [Open System-Linux] |
PIDSTAT command for debugging and analysis of Performance of Linux process |
[2014-09-21] | [Open System-Linux] |
How to define command prompt strings in Linux : what are $PS1, $PS2, $PS3 and $PS4? |
[2016-03-17] | [Open System-Linux] |
Some amazing command shortcuts in Linux |
[2014-03-13] | [Open System-Linux] |
crontab: A command in linux to automatically start/repeat a process at certian time and interval |
[2015-06-19] | [Open System-Linux] |
How to create swap file in Linux : Adding extra swap space |
Total comments: 0 | |