What is meant by well-formed?

Seok-jeong Hwang

An XML document is well-formed if it conforms to the following three rules:

  • The document must have a single root element.
  • The elements must be properly nested. This means that the form below is not allowed.
  • Start and end tags must be matched.