What is XML?

XML was designed to describe data and to focus on what data is.

HTML was designed to display data and to focus on how data looks.


What You Should Already Know

Before you continue you should have a basic understanding of the following:

  • HTML / XHTML
  • JavaScript or VBScript

If you want to study these subjects first, find the tutorials on our Home page.


What is XML?

  • XML stands for EXtensible Markup Language
  • XML is a markup language much like HTML
  • XML was designed to describe data
  • XML tags are not predefined. You must define your own tags
  • XML uses a Document Type Definition (DTD) or an XML Schema to describe the data
  • XML with a DTD or XML Schema is designed to be self-descriptive
  • XML is a W3C Recommendation

XML is a W3C Recommendation

The Extensible Markup Language (XML) became a W3C Recommendation 10. February 1998.

You can read more about XML standards in our W3C tutorial.


The Main Difference Between XML and HTML

XML was designed to carry data.

XML is not a replacement for HTML.
XML and HTML were designed with different goals:

XML was designed to describe data and to focus on what data is.
HTML was designed to display data and to focus on how data looks.

HTML is about displaying information, while XML is about describing information.


XML Does not DO Anything

XML was not designed to DO anything.

Maybe it is a little hard to understand, but XML does not DO anything. XML was created to structure, store and to send information.

The following example is a note to Tove from Jani, stored as XML:

<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>

The note has a header and a message body. It also has sender and receiver information. But still, this XML document does not DO anything. It is just pure information wrapped in XML tags. Someone must write a piece of software to send, receive or display it.

 

XML is Free and Extensible

XML tags are not predefined. You must "invent" your own tags.

The tags used to mark up HTML documents and the structure of HTML documents are predefined. The author of HTML documents can only use tags that are defined in the HTML standard (like <p>, <h1>, etc.).

XML allows the author to define his own tags and his own document structure.

The tags in the example above (like <to> and <from>) are not defined in any XML standard. These tags are "invented" by the author of the XML document.


XML is a Complement to HTML

XML is not a replacement for HTML.

It is important to understand that XML is not a replacement for HTML. In future Web development it is most likely that XML will be used to describe the data, while HTML will be used to format and display the same data.

My best description of XML is this: XML is a cross-platform, software and hardware independent tool for transmitting information.


XML in Future Web Development

XML is going to be everywhere.

We have been participating in XML development since its creation. It has been amazing to see how quickly the XML standard has been developed and how quickly a large number of software vendors have adopted the standard.

We strongly believe that XML will be as important to the future of the Web as HTML has been to the foundation of the Web and that XML will be the most common tool for all data manipulation and data transmission.

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: 在 Android 中,深层链接(Deep Link)是一种链接技术,它可以将用户直接带到应用程序的特定页面,而不是仅仅打开应用程序的主页面。深层链接通常使用统一资源标识符(Uniform Resource Identifier,URI)来实现。通过使用深层链接,应用程序可以提供更好的用户体验,因为用户可以通过点击链接直接进入应用程序的相关内容,而不需要手动导航到特定的页面。 ### 回答2: 在Android中,深层链接(Deep Link)是一种用于直接导航到应用程序内特定页面的链接。它允许应用程序通过URL链接来展示特定内容,而不仅仅是启动应用程序的主页。使用深层链接,用户可以通过点击链接在应用程序内直接打开指定页面,而不需要手动导航或搜索。 深层链接的重要性在于提供更好的用户体验和提升应用的使用效率。例如,当用户在浏览器中点击一个带有深层链接的URL时,如果对应的应用程序已安装在设备上,链接会直接导航到应用程序中相应的页面,以展示相关内容。这样,用户可以快速访问感兴趣的内容,避免了繁琐的搜索和浏览过程,提高了应用的可用性和用户满意度。 深层链接通过使用URI(Uniform Resource Identifier)来区分不同页面,这使得开发者可以为应用程序中的每个页面配置相应的链接。开发者需要在应用程序中设置Intent过滤器,以使应用程序能够处理来自外部的深层链接,并使用URI匹配来跳转到相应的页面。 另外,Android还提供了App Links和Android Instant Apps等功能,进一步增强了深层链接的功能和使用范围。App Links可以在应用内创建关联链接,使得应用内的页面可以直接与网页链接关联起来。Android Instant Apps则允许用户无需下载安装应用程序即可直接访问应用程序的特定页面。 总而言之,深层链接是一种在Android应用程序中实现直接导航到特定页面的机制,通过使用URI和Intent过滤器实现。它提供了更好的用户体验和使用效率,使用户可以快速访问感兴趣的内容,同时为开发者提供了更多的应用场景和功能扩展。 ### 回答3: 在Android中,深层链接(Deep Link)是一种链接方式,它允许应用程序直接打开特定的页面,而无需用户从应用程序的主页进入。深层链接的一个重要特点是它们可以实现应用程序与应用程序之间的无缝跳转,使得用户能够更加方便地访问所需的内容。 通常情况下,当我们点击一个深层链接时,系统会自动识别该链接,并通过应用程序内的相应配置,直接打开指定的页面或执行相应的操作。这样一来,用户可以直接跳转到具体的功能页面,而不需要在应用程序中进行繁琐的操作。 深层链接在Android中的应用场景非常广泛。例如,在电子商务应用中,当用户点击某个商品的链接时,可以直接打开该商品的详细页面;在社交媒体应用中,当用户点击消息中的链接时,可以直接打开相应的帖子或内容页面。通过使用深层链接,我们可以为用户提供更加快捷和直接的访问体验。 为了实现深层链接,开发者需要在应用程序中进行相应的配置。首先,需要在AndroidManifest.xml文件中定义Intent Filter,指定应用程序所要响应的链接。其次,需要在目标Activity中处理链接参数,以便正确地显示所需的页面。通过合理配置和处理,我们可以实现深层链接的功能。 总的来说,深层链接是Android中一种实现应用程序页面跳转的链接方式,它可以直接打开指定的页面,方便用户访问所需的内容。通过合理配置和处理,我们可以灵活地应用深层链接来提升应用程序的用户体验。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值