XML Validator

Validates XML string/file. Simply copy-paste OR upload your XML document and let the validator figure out the rest. The validator will try to use a 'smart' approach to figure out the data type

Input XML






Output


				




XML Definition and what is valid XML?

XML - eXtensible Markup Language is a syntax for creating data representation languages. There are two aspects of XML. On the first aspect, XML specifies a strict and relatively simple syntax. Sequence of characters that follows that syntax is a well-formed XML document. On the second aspect, XML provides a way of placing further restrictions on what can appear in a document. This is done by associating a Document Type Definition - DTD with an XML document. A DTD is a list of things that are allowed to appear in the XML document. A well-formed XML document that has an associated DTD and that follows the rules of the DTD is valid XML document. The idea is that XML is a general format for data representation, and a DTD specifies how to use XML to represent a particular kind of data. There are also alternatives to DTDs, such as XML schemas, for defining valid XML documents.