What is DTD exactly?

♀尐吖头ヾ 提交于 2019-11-28 08:19:44

问题


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.

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


回答1:


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.




回答2:


DTD is exactlly set of rules that the XML documents must follow . Check these rules with XML document if it is right get " valid " otherwise "not valid"



来源:https://stackoverflow.com/questions/9307571/what-is-dtd-exactly

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!