Home >Backend Development >XML/RSS Tutorial >Sample code sharing for application fields in xml

Sample code sharing for application fields in xml

黄舟
黄舟Original
2017-03-29 15:58:022228browse

XMLThe most realistic example is loading information.

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

Example: XML News
XML Journalism is a norm for exchanging news and other information.

Use such a specification to enable news producers and news consumers to produce, receive, and archive various news information changes across different hardware, software, and programming languages Easier and faster.

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

An example of an XML news document:

<?xml version="1.0" encoding="ISO-8859-1"?>
<nitf>
<head>
<title>Colombia Earthquake</title>
</head>
<body>
<body.head>
<headline>
<hl1>143 Dead in Colombia Earthquake</hl1>
</headline>
<byline>
<bytag>By Jared Kotler, Associated Press Writer</bytag>
</byline>
<dateline>
<location>Bogota, Colombia</location>
<story.date>Monday January 25 1999 7:28 ET</story.date>
</dateline>
</body.head>
</body>
</nitf>

The above is the detailed content of Sample code sharing for application fields in xml. 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