w3schools    w3Schools
Search W3Schools :
   
HOME HTML CSS XML JAVASCRIPT ASP PHP SQL MORE...   References Examples Forum About
ADVERTISEMENTS

XML Certification
Download XML editor
Custom Programming
 
Table of contents
XML Basic
XML HOME
XML Introduction
XML How to use
XML Tree
XML Syntax
XML Elements
XML Attributes
XML Validation
XML Validator
XML Viewing
XML CSS
XML XSLT

XML JavaScript
XML Parser
XML DOM
XML to HTML
XML HTTP Request
XML Application

XML Advanced
XML Namespaces
XML CDATA
XML Encoding
XML Server
XML DOM Advanced
XML Don't
XML Technologies
XML in Real Life
XML Editors
XML Summary

Examples/Quiz
XML Examples
XML Quiz
XML Exam

Selected Reading
Web Statistics
Web Glossary
Web Hosting
Web Quality

W3Schools Tutorials
W3Schools Forum

Helping W3Schools

 

XML in Real Life

previous next

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


Example: XML News

XMLNews is a specification for exchanging news and other information.

Using such a standard makes it easier for both news producers and news consumers to produce, receive, and archive any kind of news information across different hardware, software, and programming languages.

An example XMLNews document:

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

<nitf>

<head>
<title>Colombia Earthquake</title>
</head>

<body>

<headline>
  <hl1>143 Dead in Colombia Earthquake</hl1>
</headline>
<byline>
  <bytag>By Jared Kotler, Associated Press Writer</bytag>
</byline>
<dateline>
  <location>Bogota, Colombia</location>
  <date>Monday January 25 1999 7:28 ET</date>
</dateline>

</body>

</nitf>


Example: XML Weather Service

An example of an XML national weather service from NOAA (National Oceanic and Atmospheric Administration):

<?xml version="1.0" encoding="ISO-8859-1" ?> 
<current_observation>
<credit>NOAA's National Weather Service</credit> 
<credit_URL>http://weather.gov/</credit_URL> 
<image>
   <url>http://weather.gov/images/xml_logo.gif</url> 
   <title>NOAA's National Weather Service</title> 
   <link>http://weather.gov</link> 
</image>
<location>New York/John F. Kennedy Intl Airport, NY</location> 
<station_id>KJFK</station_id> 
<latitude>40.66</latitude> 
<longitude>-73.78</longitude> 
<observation_time_rfc822>
Mon, 11 Feb 2008 06:51:00 -0500 EST
</observation_time_rfc822> 
<weather>A Few Clouds</weather> 
<temp_f>11</temp_f> 
<temp_c>-12</temp_c> 
<relative_humidity>36</relative_humidity> 
<wind_dir>West</wind_dir> 
<wind_degrees>280</wind_degrees> 
<wind_mph>18.4</wind_mph> 
<wind_gust_mph>29</wind_gust_mph> 
<pressure_mb>1023.6</pressure_mb> 
<pressure_in>30.23</pressure_in> 
<dewpoint_f>-11</dewpoint_f> 
<dewpoint_c>-24</dewpoint_c> 
<windchill_f>-7</windchill_f> 
<windchill_c>-22</windchill_c> 
<visibility_mi>10.00</visibility_mi> 
<icon_url_base>
http://weather.gov/weather/images/fcicons/
</icon_url_base> 
<icon_url_name>nfew.jpg</icon_url_name> 
<two_day_history_url>
http://www.weather.gov/data/obhistory/KJFK.html
</two_day_history_url> 
<disclaimer_url>
http://weather.gov/disclaimer.html
</disclaimer_url> 
<copyright_url>
http://weather.gov/disclaimer.html
</copyright_url>
</current_observation>


previous next


The tools you need to build your web project!

Instant Demo

Ektron CMS400.NET Version 7.6 delivers all of the flexibility and features you need to deploy the Web site you want, quickly and efficiently.

learn more...

 

 

 

6 ways to take your site to the next level with Ektron:

Social Networking Create site stickiness through social networking. Keep it personal, relevant and interactive and they'll come back for more.
Open API Keep it open. Your site needs to be ready and able to connect to outside services. Ektron's open API gives you maximum flexibility.
Document Management Streamline content and document management. Users need to quickly and intuitively find and add information.
Content Authors Empower your content authors. Reduce IT bottlenecks by allowing business users to create and edit Web content and forms.
Taxonomy Climb to the top of search rankings. SEO tools, URL aliasing and eCommerce for your digital marketing strategy
Web 2.0 Tools Add powerful Web 2.0 tools like blogs, wikis, forums, geo-mapping, rating systems and RSS feeds easily.
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today.

 
WEB HOSTING
dotnetbutton
Dynamic button image generation
$15 Domain Name
Registration
Save $20 / year!
Buy UK Domain Names
Register Domain Names
Cheap Domain Names
Cheap Web Hosting
Best Web Hosting
PHP MySQL Hosting
Top 10 Web Hosting
UK Reseller Hosting
Web Hosting
FREE Web Hosting
WEB BUILDING
Website Templates
Flash Templates
Website Builder
Internet Business Opportunity
Custom Programming
FREE Trial or Demo
Web Content Manager
Forms,Web Alerts,RSS
Download XML editor
FREE Flash Website
FREE Web Templates
EDUCATION
US Web Design Schools
HTML Certification
JavaScript Certification
XML Certification
PHP Certification
ASP Certification
Home HOME or Top of Page Validate   Validate   W3C-WAI level A conformance icon Printer Friendly  Printer Friendly

W3Schools is for training only. We do not warrant the correctness of its content. The risk from using it lies entirely with the user.
While using this site, you agree to have read and accepted our terms of use and privacy policy.
Copyright 1999-2009 by Refsnes Data. All Rights Reserved.