“有效xml”和“格式正确的xml”之间有什么区别吗? [英] Is there any difference between 'valid xml' and 'well formed xml'?

查看:120
本文介绍了“有效xml”和“格式正确的xml”之间有什么区别吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道有什么区别,但是一位同事说有区别,尽管他不能支持。

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?

推荐答案

有区别,是的。

XML格式正确,而遵循< a href = https://www.w3schools.com/xml/xml_dtd.asp rel = noreferrer> DTD 被认为是有效的。

XML that adheres to the XML standard is considered well formed, while xml that adheres to a DTD is considered valid.

这篇关于“有效xml”和“格式正确的xml”之间有什么区别吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆