XML Introduction Guide (1) XML

Source: Internet
Author: User
Tags format define
XML can be used to describe data, focusing on what ' data is '.

HTML is used to display data, focusing on ' How to display data '.

The knowledge you should already know before learning XML

Before you go on, you should have the following basics:

Basics of WWW, HTML and design Web pages

Web scripting languages, such as JavaScript or VBScript

You'd better learn about XML before you learn it, because you'll use that knowledge in the learning process of XML.

What is XML?

XML is the abbreviation for Extensible Markup language

XML is a markup language similar to HTML

XML is used to describe the data

The markup for XML is not predefined in XML, you must define your own markup

XML uses document type definition (DTD) or schema (schema) to describe data

XML is a self-describing language after using a DTD or schema

What are the main differences between XML and HTML?

XML is used for storing data.

XML is not an alternative to HTML, and XML and HTML are two different uses of languages.

XML is designed to describe data, focusing on what is data and how data is stored.

HTML is designed to display data, focusing on how to display data and how to display it better.

HTML is associated with displaying information, and XML is related to descriptive information.

XML doesn't do anything.

XML is designed to do nothing.

It may seem hard to understand, but in fact XML does nothing. XML is only used to organize, store, and send information.

The following example is a note ordm to Lin, using the XML format:

Lin

Ordm

Reminder

don ' t forget me this weekend!

This note has a message header, a message body, and a sender and receiver. However, the XML document still does nothing, and he only uses XML tags to store the information in the file. Someone has written out the software that sends and receives and displays this format information.

XML is free and extensible

XML tags are not predetermined, you have to create your own tags.

In an HTML document, you must use a tag that is defined in the rule. Like:


and so on.

XML allows you to define your own markup and document structure.

For example, the "" and "" tags in the above example are not defined in advance in the XML specification. These tags are "created" by the author of the XML document.

XML is supplemental to HTML

XML is not an alternative to HTML.

Total 2 page: previous 1 [2] Next page



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.