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

前端 未结 14 2753
清酒与你
清酒与你 2020-11-21 04:43

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?

14条回答
  •  既然无缘
    2020-11-21 05:25

    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.

提交回复
热议问题