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
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
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