XML (Extensible Markup Language)
XML เป็นภาษามาร์กอัปที่ยืดหยุ่นสำหรับข้อมูลที่มีโครงสร้าง ใช้แท็กที่ผู้ใช้กำหนดเอง ใช้กันอย่างแพร่หลายสำหรับไฟล์การตั้งค่า การแลกเปลี่ยนข้อมูลองค์กร และรูปแบบเอกสาร
ประเภท MIME
application/xml
ประเภท
ข้อความ
การบีบอัด
ไม่สูญเสียคุณภาพ
ข้อดี
- + Self-describing with user-defined tags and schemas
- + Mature ecosystem: XPath, XSLT, XSD, SAX/DOM parsers
- + Standard for RSS/Atom feeds, SVG, XHTML, and SOAP
- + Supports namespaces for mixing vocabularies
ข้อเสีย
- − Verbose syntax compared to JSON or YAML
- − Parsing is slower and more memory-intensive than JSON
- − Largely replaced by JSON for web APIs
เมื่อใดควรใช้ .XML
ใช้ XML สำหรับมาร์กอัปเอกสาร ไฟล์การตั้งค่าที่ต้องการสกีมาตรวจสอบ บริการ SOAP และการเชื่อมต่อระบบองค์กรเก่า
รายละเอียดทางเทคนิค
เอกสาร XML มีโครงสร้างต้นไม้ของเอลิเมนต์พร้อมแท็กเปิดและปิด แอตทริบิวต์ และเนื้อหาข้อความ สกีมา (XSD) กำหนดโครงสร้าง ชนิดข้อมูล และข้อจำกัดได้
ประวัติ
W3C เผยแพร่ XML 1.0 ในปี 1998 เป็นส่วนย่อยที่ง่ายขึ้นของ SGML กลายเป็นกระดูกสันหลังของการแลกเปลี่ยนข้อมูลองค์กรในทศวรรษ 2000 JSON เข้ามาแทนที่ในการใช้งาน API ในทศวรรษ 2010
แปลงจาก .XML
แปลงเป็น .XML
รูปแบบที่เกี่ยวข้อง
คำศัพท์ที่เกี่ยวข้อง
Learn More
File Format Conversion: A Complete Guide
Converting files between formats is a daily task for professionals across every industry. This comprehensive guide covers document, image, audio, …
JSON vs YAML vs TOML: Choosing a Configuration Format
Configuration files are the backbone of modern applications. JSON, YAML, and TOML each offer different trade-offs between readability, complexity, and …
Meta Tags for SEO: Title, Description, and Open Graph
Meta tags control how your pages appear in search results and social media shares. This guide covers the essential meta …
Text Encoding Explained: UTF-8, ASCII, and Beyond
Text encoding determines how characters are stored as bytes. Understanding UTF-8, ASCII, and other encodings prevents garbled text, mojibake, and …
CSV vs JSON vs XML: Data Exchange Formats Compared
Data exchange formats serve different needs. CSV excels at tabular data, JSON dominates web APIs, and XML powers enterprise integrations. …
How to Format and Validate JSON Data
Malformed JSON causes silent failures in APIs and configuration files. Learn how to format, validate, and debug JSON documents to …