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