Coding With Fun
Home Docker Django Node.js Articles FAQ

Real-life XML

May 27, 2021 XML

Table of contents

In real life X ml

This section introduces you to the use of XML in real life.

Some instances of how XML can be used to exchange information.

Example: XML News

XMLNews is a specification for exchanging news and other information.

For both the supply and demand sides of news, the use of this standard can make it easier for all types of news information to be produced, received, and archived through different hardware and software and programming languages:

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

Example: XML Weather Service

XML National Weather Service case from NOAA (National Oceanic and Atmospheric Administration):

<?xml version="1.0" encoding="ISO-8859-1" ?>

<credit>NOAA's National Weather Service</credit>

<title>NOAA's National Weather Service</title>

<location>New York/John F. Kennedy Intl Airport, NY</location>
<observation_time_rfc822>Mon, 11 Feb 2008 06:51:00 -0500 EST

<weather>A Few Clouds</weather>


In real life, there are many more XML-related uses that you may encounter as you learn!