Checking XML Validity
When you edit XML, it is a good idea to use an XML-aware editor to be
sure that your syntax is correct and your XML is well-formed.
You can also use the
xmllint
utility to check that your XML is well-formed.
By default, xmllint
re-flows and prints the XML to standard output.
To check for well-formedness and only print output if errors exist, use the command xmllint -noout filename.xml
.
Comments
Post a Comment