欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

現(xiàn)實(shí)生活中的 XML

一個現(xiàn)實(shí)生活中的例子,向您展示 XML 如何攜帶數(shù)據(jù)。

實(shí)例: XML 新聞

XMLNews 是用于交換新聞和其他信息的規(guī)范。

對新聞的供求雙方來說,通過使用這種標(biāo)準(zhǔn),可以使各種類型的新聞信息通過不同軟硬件以及編程語言進(jìn)行的制作、接收和存檔更加容易。

一個 XMLNews 文檔實(shí)例:

<?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>

實(shí)例:XML Weather Service

國家氣象服務(wù)案例,來自 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>