XML Validation

Home » Scripting » XML » XML Validation

Validation is a process by which an XML document is validated. A “Well Formed” XML document is a document that conforms to the XML syntax rules

A “Valid” XML document is a “Well Formed” XML document which conforms to the rules of a Document Type Definition (DTD).

The following is a “Well Formed” XML document:

<?xml version="1.0" encoding="UTF-8"?>
<body>Don't forget me this weekend!</body>

Checking XML files for errors can be very difficult when working with large amounts of data or XML files, fortunately for everyone there are free applications online that can help you with your XML validation.

Best 3 free online resources for validating XML files

1. codebeautify’s XML validator

Codebeautify is a great place to find free online code validators, editors and unit converters that will help you more than I can say here, it’s tools being used for XML, JSon, HTML, XHTML, CSS, JavaScript and much more.

2. xmlgrid XML validator

Xmlgrid is similar to Codebeautify in most ways and capabilities but in my opinion it is more “direct”.

3. Utilities-online XML validator

If you like the Swiss army knife, you will love this.

XML Minifier / XML compressor

Minification is the process of removing all unnecessary characters from source code without changing its functionality – e.g. code comments and formatting.

But why use it? Do I need to minify the XML files?

The simple answer is no, you do not need to compress your XML files, they already use very little memory, however even if the difference is just a few bytes (those few bytes might make the difference of an online app works or not) if you or your customers have a slow Internet connection it could make all the difference.

An unexpected benefit of compressing your code is in the SEO department (Search Engine Optimization) especially in Google.

There are several free online tools that will help you with this, here are a few: