Search code examples
xmlvalidationxsddtd

Is there any difference between 'valid xml' and 'well formed xml'?


I wasn't aware of a difference, but a coworker says there is, although he can't back it up. What's the difference if any?


Solution

  • There is a difference, yes.

    XML that adheres to the XML standard is considered well formed, while xml that adheres to a DTD is considered valid.