Home >Backend Development >XML/RSS Tutorial >XML Development Basics-Viewing XML Files

XML Development Basics-Viewing XML Files

黄舟
黄舟Original
2017-03-25 17:05:122072browse

The original XML file may be viewed in all modern browsers.

Don't expect XML files to be displayed directly as HTML pages.

View XML file

XML Development Basics-Viewing XML Files

View this XML file: note.xml

Open XML file-XML document will be displayed as code colorization The root and child elements. You can expand or collapse the structure of an element by clicking the plus or minus sign to the left of the element. To view the source code without the + and - symbols, select View Source from the browser menu.

Note: In Netscape, Opera and Safari, only the element text will be displayed! To view the raw XML, right-click on the page and select View Source.

View an invalid XML file

If the browser opens an XML file with an error, it will report this error.

Please view this XML file: note_error.xml

Other XML examples

Please view these XML documents, which will help you build a perceptual understanding of XML.

An XML CD directory

This is my father's CD collection, stored as XML data (I guess it may be a very old and boring title... :-)) A title ="" href="http://dotnet.chinaitlab.com/gmail/plant_catalog.xml" target=_blank>

An XML plant catalog

A plant catalog from a gardening store, Stored as XML data.

A simple menu This is a breakfast menu from a restaurant, stored as XML data. Why does the XML appear like this?

XML documents do not carry information about how to display the data.

Since XML tags are "invented" by the author of the XML document, the browser cannot determine the tags like

The above is the detailed content of XML Development Basics-Viewing XML Files. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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