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

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

    If XML is confirming to DTD rules then it's a valid XML. If a XML document is conforming to XML rules (all tags started are closed,there is a root element etc)then it's a well formed XML.

提交回复
热议问题