Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Jun 162010
 

How to validate the format of a XML file in Linux?

Answer:

You can use xmllint, which came as part of the libxml2-utils package.

To install

# sudo apt-get install libxml2-utils

To validate the format of XML document

# xmllint --noout file.xml

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>