XML如何成为通用数据格式? [英] How is XML a general data format?

查看:79
本文介绍了XML如何成为通用数据格式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们可以在XML中使用我们选择的任何标签。
如果我们有一个DTD和样式关联,我们可以在浏览器中解析它。
我们可以以XML格式传输数据。

We can use any tag of our choice in XML. If we have a DTD and style associate with it, we can parse it in browser. We can transfer data in XML format.

但是,如果XML标签不是像HTML一样固定的,那么两个系统如何相互了解标签的含义,而

But if XML tags are not fixed like HTML, how two systems come to know each other's meaning of the tags while talking (ex web services)?

XML如何在广阔的Internet上成为通用的数据交换语言?

How can XML be a general data exchange language on the vast Internet??

推荐答案

XML与协议有关。该协议可以分为不同的级别:

XML is all about agreement. This agreement can come at different levels:


  • 本身,XML提供了协议的句法基础。通过
    同意遵守XML
    建议书提供的基本规则,可以确保各方在语法上达到最低水平的
    相互理解。

  • 连同一个模式,XML提供了协议的语法基础
    通过同意遵守模式所提供的语法,可以确保当事方
    在较高的
    结构水平上可以实现最低程度的相互理解。

  • 对较低XML级别的含义
    隐含或明确理解
    ,XML提供了协议的语义基础
    可以通过单独命名
    ,显式地通过文档或在操作上通过使用XML的手动或自动过程
    的作用来隐式地传达这种理解的形式。

  • By itself, XML provides a syntactical basis for agreement. By agreeing to adhere to the basic rules provided by the XML Recommendation, parties can be assured of a minimal level of mutual understanding at a syntactical level.
  • Along with a schema, XML provides a grammatical basis for agreement. By agreeing to adhere to the grammar provided by a schema, parties can be assured of a minimal level of mutual understanding at a higher structural level.
  • Along with implied or explicit understanding concerning the meaning of the lower XML levels, XML provides a semantic basis for agreement. The form of this understanding can be conveyed implicitly via naming alone, explicitly via documentation, or operationally via the effects of manual or automated processes that use the XML.

在基于XML的众多工具,模式和工业标准中,XML在上述每个级别上的成功都是显而易见的。

XML's success at each of these levels is evident in the multitude of tools, schemas, and industrial standards that are built on XML.

这篇关于XML如何成为通用数据格式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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