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

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

    Well, XML that isn't well formed, sort of by definition, isn't XML. Poeple usually refer to valid XML as XML that adheres to a certain schema (XSD or DTD).

提交回复
热议问题