<?xml version="1.0"encoding="ISO-8859-1"?><nitf><head><title>哥倫比亞地震</title></head><body><headline><hl1>143 死亡哥倫比亞地震</hl1></headline><byline><bytag>美聯社撰稿人Jared Kotler</bytag></byline><dateline><location>哥倫比亞波哥大</location><date>1 月25 日星期一1999 年 7:28 美國東部時間</日期></日期線></body></nitf>
XML國家氣象服務案例,來自NOAA(國家海洋暨大氣總署):
<?xml version="1.0"encoding="ISO-8859-1" ?><current_observation><credit>NOAA 國家氣象局</credit><credit_URL>http://weather.gov/</credit_URL><image ><url>http://weather.gov/images/xml_logo.gif</url><title>NOAA 國家氣象局</title><link>http://weather.gov</link></image> <location>紐約/約翰甘迺迪國際機場,紐約</location><station_id>KJFK</station_id><latitude>40.66</latitude><longitude>-73.78</longitude><observation_time_rfc822>2 月11 日星期一2008 06:51:00 -0500 EST</observation_time_rfc822><weather>少量雲</weather><temp_f>11</temp_f><temp_c>-12</temp_c><relative_humidity>36</relative_humidity><wind_irdir >西</wind_dir><wind_degs>280</wind_degs><wind_mph>18.4</wind_mph><wind_gust_mph>29</wind_gust_mph><Pressure_mb>1023.6</Pressure_mb><Pressure_in>300. </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><disclaimer_url>http://weather.gov/disclaimer.html</disclaimer_url><copyright_url>http://weather.gov/ disclaimer .html</copyright_url></current_observation>在現實生活中,與XML相關的使用還有很多,在你學習的過程中也可能會遇到!