DTD到底是什么? [英] What is DTD exactly?

查看:89
本文介绍了DTD到底是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在文档中多次使用DTD,但是我不知道它的重要性。我还试图理解 DTD的W3Schools教程。但是我觉得它太理论化了。

I have used DTD several times in my document, but I never knew its significance. I have also tried to understand W3Schools tutorial of DTD. But I found it too theoretical.

确切地说,DTD的意义是什么,为什么类型定义如此重要?

What is the significance of DTD exactly, and why are type definitions are so important?

推荐答案

认为它有点像数据库的架构-我们已经习惯了在普通关系数据库中只能使用已经声明的列的想法,并且您必须在其中插入正确的数据。好吧,DTD对XML文档的处理大致相同。

Think of it as being a bit like a schema for a database - we're used to the idea that in normal relational databases you can only use columns which have already been declared, and you have to insert the right kind of data in them. Well, a DTD does roughly the same kind of thing for XML documents.

这篇关于DTD到底是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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