XML là gì?
XML là viết tắt của eXtensible Markup Language
XML đóng một vai trò quan trọng trong nhiều hệ thống CNTT khác nhau
XML thường được sử dụng để phân phối dữ liệu qua Internet
Điều quan trọng là tất cả các nhà phát triển web phải hiểu rõ về XML
Ví dụ 1 về XML
<?xml version="1.0" encoding="UTF-8"?>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
Ví dụ XML 2
<?xml version="1.0" encoding="UTF-8"?>
<breakfast_menu>
<food>
<name>Belgian Waffles</name>
<price>$5.95</price>
<description>
Two of our famous
Belgian Waffles with plenty of real maple syrup
</description>
<calories>650</calories>
</food>
<food>
<name>Strawberry Belgian Waffles</name>
<price>$7.95</price>
<description>
Light Belgian
waffles covered with strawberries and whipped cream
</description>
<calories>900</calories>
</food>
<food>
<name>Berry-Berry Belgian Waffles</name>
<price>$8.95</price>
<description>
Belgian
waffles covered with assorted fresh berries and whipped
cream
</description>
<calories>900</calories>
</food>
<food>
<name>French Toast</name>
<price>$4.50</price>
<description>
Thick slices made
from our homemade sourdough bread
</description>
<calories>600</calories>
</food>
<food>
<name>Homestyle
Breakfast</name>
<price>$6.95</price>
<description>
Two eggs, bacon or sausage, toast, and our ever-popular hash
browns
</description>
<calories>950</calories>
</food>
</breakfast_menu>
Hướng dẫn đầy đủ về XML
Đây là phần giới thiệu ngắn về XML.
Để có hướng dẫn XML đầy đủ, hãy truy cập Hướng dẫn XML của W3Schools .