本文介绍了XML及其用途的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 如何将其他内容分层到xml? 我的意思是像dtd,wsdl,soap等? 谢谢。 -g 解决方案 你能澄清一下你问的问题吗? DTD是XML规范的一部分。它们是定义文档的一种方式 类型。模式是另一个更新,更强大的解决方案。 WSDL和SOAP是XML的应用程序 - 文档类型或语言,如果你更喜欢 ,用XML实现。 - ()ASCII Ribbon Campaign | Joe Kesselman / \标记HTML电子邮件! |系统架构和动态诗歌 Geoff写道: DTD或模式提供了对该文件适当的 结构的正式描述,可接受的值,什么默认 值是....部分文档,部分错误检查(自验证 将检查以确保文档符合此描述)。模式 也可以指定数据类型和值范围,以进一步限制这一点。 (DTD可以说是过时的 - 与模式不同 - 它们不是' 'b 了解如何使用XML命名空间。有些人会挑衅 这个断言。) 用于描述您正在与之交谈的服务的额外文档结构 以及您希望它为您做什么。 (顺便说一句,你应该尝试考虑文档,而不是文件。很多 XML实际上从未存储在文件中,只存在于网络上 和内存缓冲区。) - ()ASCII Ribbon Campaign | Joe Kesselman / \标记HTML电子邮件! |系统架构和动态诗歌 How do other things layer on to xml?I mean like dtd, wsdl, soap, etc.?Thanks.-g 解决方案Could you clarify what question you''re asking?DTDs are part of the XML spec. They''re one way of defining a documenttype. Schemas are another, more recent and more powerful, solution.WSDL and SOAP are applications of XML -- document types, or languages ifyou prefer, implemented in XML.--() ASCII Ribbon Campaign | Joe Kesselman/\ Stamp out HTML e-mail! | System architexture and kinetic poetryThe DTD, or schema, provides a formal description of what the properstructure is for that file, what values are acceptable, what defaultvalues are.... Part documentation, part error-checking (since validationwill check to make sure the document matches this description). Schemacan also specify data types and value ranges, to further constrain this.(DTDs are arguably obsolete since -- unlike schemas -- they don''tunderstand how to work with XML Namespaces. Some folks will challangethat assertion.)Additional document structure to describe what service you''re talking toand what you want it to do for you.(BTW, you should try to think in terms of documents, not files. A lot ofXML never actually gets stored in a file, existing only on the networkand in memory buffers.)--() ASCII Ribbon Campaign | Joe Kesselman/\ Stamp out HTML e-mail! | System architexture and kinetic poetry 这篇关于XML及其用途的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 07-28 06:05