XML Tutorial
XML ย่อมาจากภาษามาร์กอัปที่ขยายได้
XML ได้รับการออกแบบมาเพื่อจัดเก็บและขนส่งข้อมูล
XML ได้รับการออกแบบมาให้อ่านได้ทั้งโดยมนุษย์และด้วยเครื่อง
XML ตัวอย่าง 1
<?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>
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>
ทำไมต้องเรียน XML?
XML มีบทบาทสำคัญในระบบไอทีต่างๆ
มักใช้ XML เพื่อแจกจ่ายข้อมูลทางอินเทอร์เน็ต
เป็นสิ่งสำคัญ (สำหรับนักพัฒนาซอฟต์แวร์ทุกประเภท) ที่จะต้องมีความเข้าใจ XML เป็นอย่างดี
สิ่งที่คุณจะได้เรียนรู้
บทช่วยสอนนี้จะช่วยให้คุณเข้าใจ XML อย่างถ่องแท้:
- XML คืออะไร?
- XML ทำงานอย่างไร
- ฉันจะใช้ XML ได้อย่างไร
- ฉันสามารถใช้ XML ทำอะไรได้บ้าง
มาตรฐาน XML ที่สำคัญ
บทแนะนำนี้จะเจาะลึกลงไปในมาตรฐาน XML ที่สำคัญดังต่อไปนี้:
เราแนะนำให้อ่านบทช่วยสอนนี้ตามลำดับที่แสดงในเมนูด้านซ้าย
เรียนรู้จากตัวอย่าง
ตัวอย่างดีกว่า 1,000 คำ ตัวอย่างมักจะเข้าใจง่ายกว่าคำอธิบายข้อความ
บทช่วยสอนนี้จะเสริมคำอธิบายทั้งหมดด้วยตัวอย่าง "ลองใช้เอง" ที่อธิบายให้ชัดเจน
หากคุณลองใช้ตัวอย่างทั้งหมด คุณจะได้เรียนรู้มากมายเกี่ยวกับ XML ในเวลาอันสั้น!
แบบทดสอบ XML แบบทดสอบ
ทดสอบทักษะ XML ของคุณที่ W3Schools!
เริ่มแบบทดสอบ XML!