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

查看:31
本文介绍了“有效的 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 标准的 XML 被认为是格式良好的,而遵守 XML 标准的 XMLa 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天全站免登陆