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

前端 未结 14 2744
清酒与你
清酒与你 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:42

    See XML DTD on W3 Schools:

    An XML document with correct syntax is called "Well Formed".

    An XML document validated against a DTD is both "Well Formed" and "Valid".

提交回复
热议问题