Home > Backend Development > XML/RSS Tutorial > Teach you detailed explanation on how to open xml file

Teach you detailed explanation on how to open xml file

黄舟
Release: 2017-03-29 16:11:24
Original
3492 people have browsed it

The original XML file can be viewed with IE 5.0 (or higher) or Netscape 6, but if you want the XML document to be displayed like a Web page, you must add some additional display information.

-------------------------------------------------- ------------------------------------

View XML file
We can Use IE5.0 (or higher) to browse XML documents. You can click a hyperlink or enter the URL address in the browser's address bar, or double-click the XML document in the folder. If you use IE to open an XML document and find that the browser uses colored symbols to identify the root element and sub-elements of the XML document, and there is a "+" sign on the left side of the XML element, then you can click the "+" sign to expand the next element of this element. level structure; if there is a "-" sign on the left side of the element, then you can also click the "-" sign to collapse the next-level structure of the element. If you are willing to view the source file of the XML document, then you can right-click Select "View Source File" from the menu.

We can also use Netscape 6 to open the XML document, and you can also right-click and select "View Source File". When you open the XML document with Netscape 6, the browser will display the root element and child elements with colored codes. .

Let's look at an XML file: note.xml

Note: Don't expect XML documents to be formatted like HTML files.

-------------------------------------------------- ------------------------------------

Browse unqualified XML documents
If you use IE browser to open an incorrect XML document, the browser will report an error.
-------------------------------------------------- ----------------------------------

Other examples
You can browse some XML documents Help you find the feeling of learning XML.

-------------------------------------------------- ------------------------------------

A simple XML document does not contain how Display data information.

Since XML tags are "created" and "invented" by XML document authors, it is impossible for us to know whether a

tag refers to a table or a wooden table in HTML .

Without any additional information indicating how to display the data, IE browser generally displays XML data in the form of a tree view.

In the following passing sections, we will describe some solutions to the problem of XML document display, including CSS, XSL, JavaScript, and XML data islands.

The above is the detailed content of Teach you detailed explanation on how to open xml file. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template