What XML file is the XML file how to open

Source: Internet
Author: User
Tags html tags xml parser xsl

What is XML?

XML is a shorthand for extensible Markup language, an extensible identity language. This is the definition of the standard. So what is the sign language and why is it called

Extensibility? has been a bit confusing. I think it would be better for us to understand this: you are already very familiar with HTML, it is a markup language, remember

Get its full name: "Hypertext Markup Language" Hypertext Markup Language. I see? At the same time, there are many tags inside html, similar

Here are a few confusing concepts to remind you:

1.XML is not a markup language. It is just a meta language used to create markup languages (such as HTML). God, it's confusing again! It doesn't matter, you just know this:

XML is not the same as HTML, and it is much more useful than HTML, which we'll look at later.

2.XML is not an alternative to HTML. XML is not an upgrade of HTML, it is just a supplement to HTML, which extends more functionality for HTML. We will still be in the longer one

Continue to use HTML for a period of time. (But it's worth noting that the upgraded version of HTML is actually moving toward adapting XML.) )

3. You cannot use XML to write pages directly. Even if you include XML data, you can still convert it to HTML format to be displayed on the browser.

The following is an XML sample document (example 1) that represents the information for this article:

The code is as follows Copy Code

<?xml version= "1.0"?>
<myfile>
<title>xml Quick start</title>
<author>ajie</author>
<email>ajie@aolhoo.com</email>
<date>20010115</date>
</myfile>

Attention:

1. This code is just code, let you preliminary perceptual knowledge of XML, and can not achieve what specific applications;

2. A similar <title>,<author> statement is the markup (tags) that you create, and they are not the same as HTML tags, for example, where <title> is an article

The meaning of the title, <title> in HTML is the title of the page.


How does an XML file open

XML is a plain text file that can be opened with Notepad. To see the display effect, you can enter the local address of the XML file directly in the browser to return

, just as you would access a Web page.

XML files are plain text files with Notepad or vim or editplus, you can open the source code to view the XML file. But if you want to check

Check to see if your XML document conforms to the requirements of the Consortium, that is, if your XML document is qualified and can be used, parse it with an XML document parser if the solution

Precipitation to prove that your XML document is a regular XML document, if parsing failure is proved to be an irregular XML document. To get the XML document parser is

Simple, the browser is, the browser contains an XML parser, directly open the XML document in the browser if the correct display of your XML document when the formal.


How to open a file in Excel

When you open an XML file in Excel, you are prompted to select one of the following methods to import XML data: As an XML list, as a read-only workbook

, use the XML Source task pane to open the file as an XML list.

When you open an XML source, Excel looks for the markup for the XML style sheet (XSL). XSL describes how data is displayed. If a corresponding token exists,

Excel prompts you to choose whether to apply a style sheet. If you choose to apply XSL, the XSL will indicate how the data is displayed; In this case, the

The rest of the information in this section will no longer apply.

If you do not have an XSL tag, you receive the following message:

The specified XML source does not have a reference schema. Excel creates the schema based on the XML source data.

Excel then imports the data from the XML source. If the XML data contains duplicate fields within an element, Excel distributes the data to multiple

Line. Each row contains a unique dataset. This can cause small datasets in the XML to appear as many rows in Excel.

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.