Dave's Brain

Browse - computer tips - linux check syntax of an xml file

Date: 2010may12
OS: Linux

A.  How can I check the syntax of an XML file?

Q.  Use the xmllint command.  Like this:

	xmllint --noout <your-file.xml>

The "--noout" option request no output if everything is OK.
This command is in the libxml2 package in RedHat/Fedora.
I learned about this command at my local LUG last night.
What this info useful to you? You can donate to say thanks

Add a comment

Sign in to add a comment
Copyright © 2008-2012, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.
Advertisements: